MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / api

Function api

__tests__/telemetry-services.test.ts:167–171  ·  view source on GitHub ↗

GET one dashboard endpoint, as the signed-in page does.

(pathAndQuery: string)

Source from the content-addressed store, hash-verified

165
166 /** GET one dashboard endpoint, as the signed-in page does. */
167 async function api(pathAndQuery: string): Promise<Row> {
168 const result = await handleApi(env, new URL(`https://stats.test${pathAndQuery}`));
169 expect(result.status ?? 200).toBe(200);
170 return result.body as Row;
171 }
172
173 /**
174 * One cron invocation at `iso`. `chunkMs` is the wall-clock time each legacy-usage

Callers 1

Calls 1

handleApiFunction · 0.90

Tested by

no test coverage detected