feat: add default reply to get on / and health check on /healthz
This commit is contained in:
4
main.go
4
main.go
@ -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")
|
||||
|
Reference in New Issue
Block a user