breakout into monorepo

This commit is contained in:
Dominic Ferrando
2026-03-02 13:39:47 -05:00
parent 6421f6527f
commit 45acec2cfd
90 changed files with 12179 additions and 2987 deletions
+17
View File
@@ -0,0 +1,17 @@
export default {
async fetch(request: Request, env: Env) {
if (request.method !== "POST") {
return new Response("Method Not Allowed", { status: 405 });
}
const body = await request.json().catch(() => null);
if (!body) return new Response("Bad Request", { status: 400 });
const key = `calc:${Date.now()}:${crypto.randomUUID()}`;
await env.CALCULATOR_LOGGING.put(key, JSON.stringify(body));
return new Response(JSON.stringify({ ok: true, key }), {
headers: { "content-type": "application/json" },
});
},
} satisfies ExportedHandler<Env>;