MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / routerFetch

Function routerFetch

graph-ui/src/llm/sidecar.test.ts:255–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

253};
254
255function routerFetch(): { fetch: FetchLike; urls: string[] } {
256 return recordingFetch((url) => {
257 if (url.endsWith('/health')) {
258 return response(200, { status: 'ok' });
259 }
260 if (url.includes('/props?model=')) {
261 return response(200, SCOPED_PROPS);
262 }
263 if (url.endsWith('/props')) {
264 return response(200, ROUTER_PROPS);
265 }
266 return response(200, ROUTER_MODELS);
267 });
268}
269
270describe('die Betriebsart', () => {
271 it('ist genau dann Router, wenn /props es sagt', () => {

Callers 1

sidecar.test.tsFile · 0.85

Calls 2

recordingFetchFunction · 0.70
responseFunction · 0.70

Tested by

no test coverage detected