UNPKG

han-prev-core

Version:

Core framework for Han - A powerful Node.js framework inspired by NestJS

24 lines (23 loc) 726 B
export interface MappedRoute { method: string; path: string; controller: string; handler: string; middleware?: string[]; fullPath: string; } export declare class RouteMapper { private static routes; static mapControllerRoutes(controllerClass: any): MappedRoute[]; static collectAllRoutes(controllers: any[], globalPrefix?: string): MappedRoute[]; static getRouteStatistics(): { total: number; methods: Record<string, number>; controllers: number; controllerNames: string[]; }; static displayRoutes(serverUrl?: string, environment?: string): void; private static colors; private static getMethodColor; private static getMethodEmoji; }