This commit is contained in:
Corey Johnson 2025-11-07 15:07:24 -08:00
parent bff5aa05f5
commit f404f7c99b

View File

@ -19,6 +19,7 @@ const server = serve({
"/gitea/webhook": {
POST: async (req) => {
const payload = await req.json()
console.log(`🌵 Received Gitea webhook`)
try {
await handleGiteaWebhook(payload as any)
@ -28,7 +29,7 @@ const server = serve({
timestamp: new Date().toISOString(),
message: error instanceof Error ? error.message : String(error),
stack: error instanceof Error ? error.stack : undefined,
payload
payload,
}
errors.push(errorLog)
console.error("Webhook error:", errorLog)
@ -39,9 +40,9 @@ const server = serve({
"/errors": {
GET: () => {
return new Response(JSON.stringify(errors, null, 2), {
headers: { "Content-Type": "application/json" }
headers: { "Content-Type": "application/json" },
})
}
},
},
"/discord/auth": async () => {
const html = (