MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / rebuildRouteMap

Method rebuildRouteMap

framework/framework/server.ts:375–383  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

373 }
374
375 private rebuildRouteMap() {
376 const map: Record<string, string> = Object.create(null);
377 for (const layer of this.router.stack) {
378 if (layer.name && typeof layer.path === 'string') {
379 map[layer.name] = layer.path;
380 }
381 }
382 this._routeMap = map;
383 }
384
385 Handler = Handler;
386 ConnectionHandler = ConnectionHandler;

Callers 1

registerMethod · 0.95

Calls 1

createMethod · 0.80

Tested by

no test coverage detected