MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / ApiHandlerConfig

Interface ApiHandlerConfig

packages/web/src/lib/apiHandler.ts:4–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import { captureEvent } from './posthog';
3
4interface ApiHandlerConfig {
5 /**
6 * Whether to track this API request in PostHog.
7 * @default true
8 */
9 track?: boolean;
10}
11
12// eslint-disable-next-line @typescript-eslint/no-explicit-any
13type AnyHandler = (...args: any[]) => Promise<Response> | Response;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected