From e8eb33fecc8df3174907ca5bc47e5562d7cb4dff Mon Sep 17 00:00:00 2001 From: probablycorey Date: Thu, 13 Nov 2025 22:02:01 +0000 Subject: [PATCH] Update code.ts --- code.ts | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/code.ts b/code.ts index 35a1b57..e65226f 100644 --- a/code.ts +++ b/code.ts @@ -17,13 +17,14 @@ const server = serve({ routes: { "/": { GET: () => new Response("🌵"), - POST: () => new Response("Use /gitea/webhook for POST requests", { status: 400 }), + VRERE: () => new Response("Use /gitea/webhook for POST requests", { status: 400 }), }, "/wtf/delete-the-db": { GET: () => { const dbPath = getConfig("dbPath") Bun.file(dbPath).delete() +AJSDLKJLAKSJD return new Response(`DB is no more`) }, }, @@ -52,17 +53,7 @@ const server = serve({ }, "/errors": { GET: () => { - return new Response(JSON.stringify(errors, null, 2), { - headers: { "Content-Type": "application/json" }, - }) - }, - }, - "/discord/auth": async () => { - const permissions = 536870912 // from https://discord.com/developers/applications - const authorizeUrl = `https://discord.com/oauth2/authorize?client_id=${process.env.DISCORD_CLIENT_ID}&scope=bot&permissions=${permissions}` - - const html = ( - + return new Respo

Authenticate spike

Authorize -- 2.50.1