From 9ca1f999910b3761b3b5553e4cc14ec779b8e73f Mon Sep 17 00:00:00 2001 From: Tine Date: Mon, 22 Apr 2024 19:39:04 +0200 Subject: [PATCH] fix: use post --- server/server.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/server.ts b/server/server.ts index c768404..211850d 100644 --- a/server/server.ts +++ b/server/server.ts @@ -35,9 +35,6 @@ app.get("/.well-known/matrix/support", (c) => // .well-known for webfinger - tailscale app.get("/.well-known/webfinger", (c) => { - console.log(c.req.query()); - console.log(c.req.header()); - const resource = c.req.query("resource"); if (!resource) { c.status(400); @@ -83,7 +80,7 @@ app.get("/js/script.js", async (c) => { return c.body(script); }); -app.get("/api/event", (c) => { +app.post("/api/event", (c) => { const request = new Request(c.req.raw); request.headers.delete("Cookie"); request.headers.set("X-Forwarded-For", c.req.header("host") || "");