Add /cache route
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user