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 / propose.ts
web/functions/api/operator/propose.ts5 lines · 433 bytes
1// Cloudflare Pages Function: POST /api/operator/propose {"card": "<id>"} with Authorization: Bearer <token>.
2// Launches one of the seven fixed cards on Ethereum Sepolia (operator/cards.ts); see operator/operator.ts.
3import { handleProposeRequest, type CloudEnv } from '../../../operator/cloud.ts'
4
5export const onRequest = (ctx: { request: Request; env: CloudEnv }): Promise<Response> => handleProposeRequest(ctx.request, ctx.env)