Add opensearch endpoint and handler

This commit is contained in:
James Mills
2021-02-02 15:12:08 +10:00
parent 3923ff91ba
commit 93cab4c1bc
3 changed files with 39 additions and 0 deletions

View File

@@ -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())