allow /last for robots
This commit is contained in:
@@ -166,7 +166,8 @@ func (s *Rest) routes() chi.Router {
|
||||
|
||||
router.With(tollbooth_chi.LimitHandler(tollbooth.NewLimiter(10, nil))).
|
||||
Get("/robots.txt", func(w http.ResponseWriter, r *http.Request) {
|
||||
render.PlainText(w, r, "User-agent: *\nDisallow: /auth/\nDisallow: /api/\nAllow: /api/v1/find\n")
|
||||
render.PlainText(w, r, "User-agent: *\nDisallow: /auth/\nDisallow: /api/\n"+
|
||||
"Allow: /api/v1/find\nAllow: /api/v1/last\n")
|
||||
})
|
||||
|
||||
// file server for static content from /web
|
||||
|
||||
Reference in New Issue
Block a user