vont
Version:
A full-stack framework combining Koa and React with file-based routing
14 lines • 490 B
TypeScript
import type { RouteConfig } from '../types/index.js';
/**
* 生成 API 路由
*/
export declare function generateApiRoutes(apiDir: string, apiPrefix: string): Promise<RouteConfig[]>;
/**
* 生成页面路由(扫描目录结构)
*/
export declare function scanPageRoutes(pagesDir: string): Promise<string[]>;
/**
* 规范化路由路径(处理重复斜杠)
*/
export declare function normalizeRoutePath(routePath: string): string;
//# sourceMappingURL=router-generator.d.ts.map