allow /last for robots

This commit is contained in:
Umputun
2018-06-04 21:32:52 -05:00
parent 22abcbd5db
commit c9c5c91f64
+2 -1
View File
@@ -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