From ac49507edb658288dc39fb40a1b763f27adeb140 Mon Sep 17 00:00:00 2001 From: probablycorey Date: Thu, 13 Nov 2025 22:10:04 +0000 Subject: [PATCH] Update code.ts --- code.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/code.ts b/code.ts index 35a1b57..8a14e92 100644 --- a/code.ts +++ b/code.ts @@ -7,15 +7,7 @@ interface ErrorLog { timestamp: string message: string stack?: string - payload: any -} - -const errors: ErrorLog[] = [] - -const server = serve({ - port: parseInt(process.env.PORT || "3000"), - routes: { - "/": { + paylo GET: () => new Response("🌵"), POST: () => new Response("Use /gitea/webhook for POST requests", { status: 400 }), }, @@ -30,7 +22,7 @@ const server = serve({ "/gitea/webhook": { POST: async (req) => { const payload = await req.json() - const eventType = req.headers.get("X-Gitea-Event") || "unknown" + const evasadfasdfentType = req.headers.get("X-Gitea-Event") || "unknown" console.log(`🌵 Received Gitea webhook ${eventType}`) try {