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. |
| 3 | import { handleProposeRequest, type CloudEnv } from '../../../operator/cloud.ts' |
| 4 | |
| 5 | export const onRequest = (ctx: { request: Request; env: CloudEnv }): Promise<Response> => handleProposeRequest(ctx.request, ctx.env) |