robots.txt
This commit is contained in:
parent
802e9a399e
commit
ea9059f9f0
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue