feat: add default reply to get on / and health check on /healthz

This commit is contained in:
2025-05-16 10:41:56 +02:00
parent a8ef10f97d
commit 3c0f1bd531
2 changed files with 10 additions and 1 deletions

View File

@ -15,7 +15,9 @@ func main() {
r := mux.NewRouter()
r.HandleFunc("/", handler(l)).
Methods("POST")
r.HandleFunc("/healthz", httpHealth(l)).
r.HandleFunc("/", ok).
Methods("GET")
r.HandleFunc("/healthz{slash:/?}", httpHealth(l)).
Methods("GET")
r.HandleFunc("/reset", reset(t)).
Methods("PUT")