Open platform to collect and prioritize feedback
chore: move _health up the stack
goenning7851f9da5661
diff --git a/app/cmd/routes.go b/app/cmd/routes.goindex ac05e0821..49bd7bfd3 100644--- a/app/cmd/routes.go+++ b/app/cmd/routes.go@@ -16,6 +16,8 @@ import (func routes(r *web.Engine) *web.Engine {r.Worker().Use(middlewares.WorkerSetup())+ r.Get("/_health", handlers.Health())+r.Use(middlewares.CatchPanic())r.Use(middlewares.Instrumentation())@@ -44,7 +46,6 @@ func routes(r *web.Engine) *web.Engine {r.Use(middlewares.Session())- r.Get("/_health", handlers.Health())r.Get("/robots.txt", handlers.RobotsTXT())r.Post("/_api/log-error", handlers.LogError())diff --git a/app/handlers/common.go b/app/handlers/common.goindex db361c287..13edc2b7b 100644--- a/app/handlers/common.go+++ b/app/handlers/common.go@@ -30,7 +30,7 @@ func Health() web.HandlerFunc {if err != nil {return c.Failure(err)}- return c.Ok(web.Map{})+ return c.Ok(web.Map{"status": "Healthy"})}}