file-routing-expressjs
Version:
A dependency-free, flexible, system-based file routing for Express.
6 lines (4 loc) • 373 B
TypeScript
declare function buildRoutePattern(route: string, name: string, isParam: boolean, pattern?: string | RegExp, isFile?: boolean): string;
declare function buildRouteWithOneLeadingSlash(value: string): string;
declare function filenameToJSorTS(dir: string, filename: string): string | undefined;
export { buildRoutePattern, buildRouteWithOneLeadingSlash, filenameToJSorTS };