From 180d7082000919728a8462a95d2951c80951e828 Mon Sep 17 00:00:00 2001 From: yourfriendoss Date: Sat, 29 Nov 2025 14:22:06 +0200 Subject: [PATCH] make go actually serve up robots.txt --- main.go | 4 ++++ .../public => templates}/robots.txt | 0 2 files changed, 4 insertions(+) rename {frontend/artistgrid-sheets-frontend/public => templates}/robots.txt (100%) diff --git a/main.go b/main.go index ae98d5f..1b7d976 100644 --- a/main.go +++ b/main.go @@ -593,6 +593,10 @@ func main() { 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 { return c.SendFile(HTMLFilename) }) diff --git a/frontend/artistgrid-sheets-frontend/public/robots.txt b/templates/robots.txt similarity index 100% rename from frontend/artistgrid-sheets-frontend/public/robots.txt rename to templates/robots.txt