MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getRoutingManifest

Method getRoutingManifest

src/index.ts:2901–2917  ·  view source on GitHub ↗

* Build a URL → handler routing manifest from the index. Each entry * pairs a route node (URL + method) with its handler function/method * via the `references` edge that framework resolvers emit. Returns * null when fewer than 3 valid (non-test) routes exist.

(limit?: number, perRoute?: boolean)

Source from the content-addressed store, hash-verified

2899 * null when fewer than 3 valid (non-test) routes exist.
2900 */
2901 getRoutingManifest(limit?: number, perRoute?: boolean): {
2902 entries: Array<{
2903 url: string;
2904 handler: string;
2905 handlerFile: string;
2906 handlerLine: number;
2907 handlerKind: string;
2908 routeId: string;
2909 routeFile: string;
2910 routeLine: number;
2911 }>;
2912 topHandlerFile: string | null;
2913 topHandlerFileCount: number;
2914 totalRoutes: number;
2915 } | null {
2916 return this.queries.getRoutingManifest(limit, perRoute);
2917 }
2918
2919 // ===========================================================================
2920 // Edge Operations

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected