Source mirror · commit 369512f · 2026-10-26 · MIT · canonical repo: gitlab.com/jiapunk/upgrade-airlock
git clone https://upgrade-airlock.pages.dev/source/upgrade-airlock.git
upgrade-airlock / web / functions / api / operator / index.ts
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.
3import { handleInfoRequest, type CloudEnv } from '../../../operator/cloud.ts'
4
5export const onRequest = (ctx: { request: Request; env: CloudEnv }): Promise<Response> => handleInfoRequest(ctx.request, ctx.env)