MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / findRoute

Function findRoute

packages/rest/src/router/router-base.ts:59–64  ·  view source on GitHub ↗
(verb: string, path: string)

Source from the content-addressed store, hash-verified

57 }
58
59 private findRoute(verb: string, path: string) {
60 const key = this.getKey(verb, path);
61 const route = this.routesWithoutPathVars[key];
62 if (route) return createResolvedRoute(route, {});
63 else return this.findRouteWithPathVars(verb, path);
64 }
65
66 list() {
67 let routes = Object.values(this.routesWithoutPathVars);

Callers

nothing calls this directly

Calls 2

createResolvedRouteFunction · 0.90
findRouteWithPathVarsMethod · 0.45

Tested by

no test coverage detected