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

Interface ApiResult

telemetry-dashboard/src/api.ts:46–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44const CACHE_CONTROL = 'private, max-age=300';
45
46export interface ApiResult {
47 body: unknown;
48 status?: number;
49 /** Omitted ⇒ src/index.ts keeps its `no-store` default. */
50 cacheControl?: string;
51}
52
53const fail = (error: string, status = 400): ApiResult => ({ body: { error }, status });
54

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected