1
0
Fork 0

Only return an image at the root

This commit is contained in:
Sam Therapy 2023-10-09 17:48:56 +02:00
parent bf073cfbc0
commit f1fd9c84e8
Signed by: sam
GPG Key ID: 4D8B07C18F31ACBD
1 changed files with 1 additions and 1 deletions

View File

@ -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" : "",