Add /cache route

This commit is contained in:
James Mills
2021-01-30 15:58:18 +10:00
parent c4f53a0be9
commit a9be838b0b
3 changed files with 6 additions and 3 deletions

View File

@@ -285,6 +285,9 @@ func (s *Server) initRoutes() {
s.router.GET("/search", s.SearchHandler())
s.router.GET("/cache/:hash", s.CacheHandler())
s.router.HEAD("/cache/:hash", s.CacheHandler())
s.router.GET("/login", s.am.HasAuth(s.LoginHandler()))
s.router.POST("/login", s.LoginHandler())