diff --git a/main.go b/main.go index c22a634f51c2c16a54609ee5044e839c59a71092..d7bac0c046c58ff8d80fa4c5bbd34facd6c31b67 100644 --- a/main.go +++ b/main.go @@ -25,10 +25,13 @@ func providersHandler(w http.ResponseWriter, r *http.Request) { func main() { http.HandleFunc("/providers", providersHandler) + http.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) { + _, _ = w.Write([]byte("OK")) + w.WriteHeader(http.StatusOK) + }) log.Println("Server starting on :8080") if err := http.ListenAndServe(":8080", nil); err != nil { log.Fatal("Server failed to start:", err) } } -