improved healthcheck
This commit is contained in:
@@ -55,7 +55,11 @@ func main() {
|
||||
e.Use(middleware.HTTPSRedirect())
|
||||
}
|
||||
|
||||
e.GET("/health", util.HealthCheck)
|
||||
e.GET("/health", func(c echo.Context) error {
|
||||
return c.Render(200, "health", Page{
|
||||
BuildNumber: util.GetBuildNumber(),
|
||||
})
|
||||
})
|
||||
|
||||
e.Use(func(next echo.HandlerFunc) echo.HandlerFunc {
|
||||
return func(c echo.Context) error {
|
||||
|
||||
Reference in New Issue
Block a user