We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ebc746 commit 8108738Copy full SHA for 8108738
main.go
@@ -25,10 +25,13 @@ func providersHandler(w http.ResponseWriter, r *http.Request) {
25
26
func main() {
27
http.HandleFunc("/providers", providersHandler)
28
+ http.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
29
+ _, _ = w.Write([]byte("OK"))
30
+ w.WriteHeader(http.StatusOK)
31
+ })
32
33
log.Println("Server starting on :8080")
34
if err := http.ListenAndServe(":8080", nil); err != nil {
35
log.Fatal("Server failed to start:", err)
36
}
37
-
0 commit comments