go: enable HEAD method for some routes
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ffc9b74c75
commit
5cf5ba51bc
@ -38,11 +38,13 @@ func (a *App) SetupRoutes() {
|
|||||||
// alternative:
|
// alternative:
|
||||||
// e.GET("/static/*", echo.WrapHandler(http.StripPrefix("/static/", assets)))
|
// e.GET("/static/*", echo.WrapHandler(http.StripPrefix("/static/", assets)))
|
||||||
e.GET("/assets/*", echo.WrapHandler(http.StripPrefix("/assets/", assets)), handlers.MiddlewareCache)
|
e.GET("/assets/*", echo.WrapHandler(http.StripPrefix("/assets/", assets)), handlers.MiddlewareCache)
|
||||||
|
e.HEAD("/assets/*", echo.WrapHandler(http.StripPrefix("/assets/", assets)), handlers.MiddlewareCache)
|
||||||
|
|
||||||
e.GET("/healthz", handlers.Healthz())
|
e.GET("/healthz", handlers.Healthz())
|
||||||
e.GET("/health", handlers.Healthz())
|
e.GET("/health", handlers.Healthz())
|
||||||
|
|
||||||
e.GET("/", handlers.Index())
|
e.GET("/", handlers.Index())
|
||||||
|
e.HEAD("/", handlers.Index())
|
||||||
e.GET("/signin", handlers.Signin())
|
e.GET("/signin", handlers.Signin())
|
||||||
e.POST("/signin", handlers.SigninPost(a.db))
|
e.POST("/signin", handlers.SigninPost(a.db))
|
||||||
e.GET("/signup", handlers.Signup())
|
e.GET("/signup", handlers.Signup())
|
||||||
|
Loading…
Reference in New Issue
Block a user