From ea9059f9f0402568ca7d7a7280840a8c1de2a584 Mon Sep 17 00:00:00 2001 From: Niko Abeler Date: Tue, 25 Jul 2023 18:59:25 +0200 Subject: [PATCH] robots.txt --- web/app.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/app.go b/web/app.go index b06d845..a8145eb 100644 --- a/web/app.go +++ b/web/app.go @@ -98,6 +98,11 @@ func NewWebApp( app.Get("/index.xml", rssHandler.Handle) // Posts app.Get("/posts/:post/", entryHandler.Handle) + // robots.txt + app.Get("/robots.txt", func(c *fiber.Ctx) error { + c.Set("Content-Type", "text/plain") + return c.SendString("User-agent: *\nAllow: /\n") + }) // ActivityPub // activityPubServer := NewActivityPubServer(configRepo)