burger-api
Version:
<div align="center"> <a href="https://burger-api.com"> <img src="https://github.com/user-attachments/assets/0d9b376e-1d89-479a-aa7f-e7ee3c6b2342" alt="BurgerAPI"/> </a> </div>
15 lines (14 loc) • 560 B
TypeScript
/**
* Converts a file path to an API route path.
* @param filePath The file path to convert.
* @param prefix The prefix to prepend to the route path.
* @returns The API route path.
*/
export declare function filePathToApiRoutePath(filePath: string, prefix: string): string;
/**
* Converts a file path to a page route path.
* @param filePath The file path to convert.
* @param prefix The prefix to prepend to the route path.
* @returns The page route path.
*/
export declare function filePathToPageRoutePath(filePath: string, prefix: string): string;