make go actually serve up robots.txt

This commit is contained in:
Soph :3 2025-11-29 14:22:06 +02:00
parent 0e2d2893de
commit 180d708200
2 changed files with 4 additions and 0 deletions

View file

@ -593,6 +593,10 @@ func main() {
return c.SendFile("templates/index.html") return c.SendFile("templates/index.html")
}) })
app.Get("/robots.txt", func(c *fiber.Ctx) error {
return c.SendFile("templates/robots.txt")
})
app.Get("/artists.html", func(c *fiber.Ctx) error { app.Get("/artists.html", func(c *fiber.Ctx) error {
return c.SendFile(HTMLFilename) return c.SendFile(HTMLFilename)
}) })