From f1fd9c84e8770bc76b12eb9e6756e243f9c346fd Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Mon, 9 Oct 2023 17:48:56 +0200 Subject: [PATCH] Only return an image at the root --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 84044d4..7a9fa16 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,7 +17,7 @@ app.get("/favicon.ico", (c) => c.body(null, 204)) // Politely tell robots to go away app.get("/robots.txt", (c) => c.text("User-agent: *\nDisallow: /")) -app.all("*", (c) => { +app.all("/", (c) => { const query: SearchQuery = { site: c.req.query("booru") ?? "safebooru", tags: c.req.query("tags") ?? c.req.header("Host") === "rint.osaka" ? "tohsaka_rin" : "",