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 e060cb4 commit 6343e98Copy full SHA for 6343e98
main.go
@@ -30,6 +30,11 @@ func main() {
30
service := &SqlQueryService{
31
runnersCache: runnersCache,
32
}
33
+ http.HandleFunc("GET /healthz", func(w http.ResponseWriter, r *http.Request) {
34
+ w.WriteHeader(http.StatusOK)
35
+ _, _ = w.Write([]byte("OK"))
36
+ })
37
+
38
http.Handle("POST /query", service)
39
40
slog.Info("Listening", slog.String("addr", addr))
0 commit comments