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

Function routeNode

src/resolution/frameworks/codeigniter.ts:98–112  ·  view source on GitHub ↗
(filePath: string, line: number, verb: string, routePath: string, now: number)

Source from the content-addressed store, hash-verified

96}
97
98function routeNode(filePath: string, line: number, verb: string, routePath: string, now: number): Node {
99 return {
100 id: `route:${filePath}:${line}:${verb}:${routePath}`,
101 kind: 'route',
102 name: `${verb} ${routePath}`,
103 qualifiedName: `${filePath}::route:${verb}:${routePath}`,
104 filePath,
105 startLine: line,
106 endLine: line,
107 startColumn: 0,
108 endColumn: 0,
109 language: 'php',
110 updatedAt: now,
111 };
112}
113
114/** Each public method of the class a controller file is named after, as a route. */
115function conventionRoutes(filePath: string, baseUrl: string, safe: string): { nodes: Node[]; references: UnresolvedRef[] } {

Callers 2

conventionRoutesFunction · 0.85
explicitRoutesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected