Add opensearch endpoint and handler
This commit is contained in:
@@ -285,6 +285,8 @@ func (s *Server) initRoutes() {
|
||||
s.router.GET("/", s.IndexHandler())
|
||||
s.router.HEAD("/", s.IndexHandler())
|
||||
|
||||
s.router.GET("/opensearch.xml", s.OpenSearchHandler())
|
||||
|
||||
s.router.GET("/robots.txt", s.RobotsHandler())
|
||||
s.router.HEAD("/robots.txt", s.RobotsHandler())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user