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

Function api

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

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

(pathAndQuery: string)

Source from the content-addressed store, hash-verified

142
143 /** GET one dashboard endpoint, as the signed-in page does. */
144 async function api(pathAndQuery: string): Promise<Row> {
145 const result = await handleApi(env, new URL(`https://stats.test${pathAndQuery}`));
146 expect(result.status ?? 200).toBe(200);
147 return result.body as Row;
148 }
149
150 /**
151 * 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