From 229b6a292c3b7844cbe38470deaca5f7cc63e631 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 1 Jul 2023 07:52:46 +0200 Subject: [PATCH] cmd/stcrashreceiver: Add /ping endpoint --- cmd/stcrashreceiver/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/stcrashreceiver/main.go b/cmd/stcrashreceiver/main.go index 15f48c17b..ec57e9e9b 100644 --- a/cmd/stcrashreceiver/main.go +++ b/cmd/stcrashreceiver/main.go @@ -69,6 +69,9 @@ func main() { } mux.Handle("/", cr) + mux.HandleFunc("/ping", func(w http.ResponseWriter, req *http.Request) { + w.Write([]byte("OK")) + }) if params.DSN != "" { mux.HandleFunc("/newcrash/failure", handleFailureFn(params.DSN, filepath.Join(params.Dir, "failure_reports")))