mirror of
https://github.com/skidoodle/ipinfo.git
synced 2026-04-28 17:37:37 +02:00
docker healthcheck
This commit is contained in:
@@ -9,7 +9,7 @@ func HealthCheck() http.Handler {
|
||||
mux := http.NewServeMux()
|
||||
mux.HandleFunc("/health", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
w.Write([]byte("Healthy"))
|
||||
w.Write([]byte("OK"))
|
||||
})
|
||||
return mux
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user