allow /find for robots

This commit is contained in:
Umputun
2018-06-04 00:57:35 -05:00
parent fbb0e69806
commit a9d8179a4b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ func (m *Migrator) importCtrl(w http.ResponseWriter, r *http.Request) {
}
// GET /export?site=site-id&secret=12345
// exports all comments for siteID as json stream or gz file
// exports all comments for siteID as gz file
func (m *Migrator) exportCtrl(w http.ResponseWriter, r *http.Request) {
secret := r.URL.Query().Get("secret")
+1 -1
View File
@@ -166,7 +166,7 @@ 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/\n")
render.PlainText(w, r, "User-agent: *\nDisallow: /auth/\nDisallow: /api/\nAllow: /api/v1/find\n")
})
// file server for static content from /web