web/functions/api/operator/index.ts5 lines · 435 bytes
| 1 | // Cloudflare Pages Function: GET /api/operator. Says whether the operator panel is on for this deployment (both |
| 2 | // secrets set) and which cards it can launch. Everything else is in operator/cloud.ts and operator/operator.ts. |
| 3 | import { handleInfoRequest, type CloudEnv } from '../../../operator/cloud.ts' |
| 4 | |
| 5 | export const onRequest = (ctx: { request: Request; env: CloudEnv }): Promise<Response> => handleInfoRequest(ctx.request, ctx.env) |