improved healthcheck

This commit is contained in:
JurajKubrican
2025-08-04 22:14:56 +02:00
parent 17bd68b797
commit 90b013698b
3 changed files with 8 additions and 7 deletions

View File

@@ -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 {