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") || "");