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

Method getTopRouteFile

src/index.ts:2891–2893  ·  view source on GitHub ↗

* Find the project's "primary route file" — the file with the densest * concentration of framework-emitted `route` nodes (≥3 routes, ≥30% * of all non-test routes). Used to inline the routing config in * `codegraph_explore` responses on small realworld template repos * (rails-realworld,

()

Source from the content-addressed store, hash-verified

2889 * Glob+Read of `routes.rb`/`urls.py`/etc. otherwise beats codegraph.
2890 */
2891 getTopRouteFile(): { filePath: string; routeCount: number; totalRoutes: number } | null {
2892 return this.queries.getTopRouteFile();
2893 }
2894
2895 /**
2896 * Build a URL → handler routing manifest from the index. Each entry

Calls

no outgoing calls

Tested by

no test coverage detected