robots.txt

This commit is contained in:
Niko Abeler 2023-07-25 18:59:25 +02:00
parent 802e9a399e
commit ea9059f9f0
1 changed files with 5 additions and 0 deletions

View File

@ -98,6 +98,11 @@ func NewWebApp(
app.Get("/index.xml", rssHandler.Handle) app.Get("/index.xml", rssHandler.Handle)
// Posts // Posts
app.Get("/posts/:post/", entryHandler.Handle) 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 // ActivityPub
// activityPubServer := NewActivityPubServer(configRepo) // activityPubServer := NewActivityPubServer(configRepo)