MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / createRouteRegistry

Function createRouteRegistry

server/tests/integration/updateRunRoute.test.js:15–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13const require = createRequire(import.meta.url);
14
15function createRouteRegistry() {
16 const routes = new Map();
17
18 return {
19 app: {
20 get(path, ...handlers) {
21 routes.set(`GET ${path}`, handlers);
22 },
23 },
24 getHandlers(method, path) {
25 return routes.get(`${method} ${path}`) || [];
26 },
27 };
28}
29
30function createMockResponse() {
31 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected