fix: use backend for /healthz page (#4938)

This commit is contained in:
Colin Adler
2022-11-07 19:35:52 +00:00
committed by GitHub
parent bda76368bc
commit 50ad4a8535
7 changed files with 18 additions and 36 deletions
+2
View File
@@ -233,6 +233,8 @@ func New(options *Options) *API {
httpmw.CSRF(options.SecureAuthCookie),
)
r.Get("/healthz", func(w http.ResponseWriter, r *http.Request) { _, _ = w.Write([]byte("OK")) })
apps := func(r chi.Router) {
r.Use(
tracing.Middleware(api.TracerProvider),