MCPcopy Create free account
hub / github.com/bytebase/bytebase / setRouteNameIndex

Function setRouteNameIndex

frontend/src/react/router/navigation.ts:36–38  ·  view source on GitHub ↗
(index: Map<string, string>)

Source from the content-addressed store, hash-verified

34let nameIndex = new Map<string, string>();
35
36export function setRouteNameIndex(index: Map<string, string>): void {
37 nameIndex = index;
38}
39
40// All registered named routes as `{ name, path }` pairs (backs the agent's
41// `router.getRoutes()` route-map listing).

Callers 4

AppRoot.tsxFile · 0.90
navigation.test.tsFile · 0.90
guard.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected