move /ping to /healthz

This commit is contained in:
dhax 2025-03-05 21:16:59 +01:00
parent 08c09ffee7
commit 1a4a9abbbc

View file

@ -78,8 +78,8 @@ func New(enableCORS bool) (*chi.Mux, error) {
r.Mount("/api", appAPI.Router())
})
r.Get("/ping", func(w http.ResponseWriter, _ *http.Request) {
w.Write([]byte("pong"))
r.Get("/healthz", func(w http.ResponseWriter, _ *http.Request) {
w.Write([]byte("ok"))
})
r.Get("/*", SPAHandler("public"))