Skip to content

Commit f2eafe7

Browse files
committed
feat: implement /_status endpoint
1 parent 3bb340a commit f2eafe7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/gitlab_server.go

+5
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ func Server(cCtx *cli.Context) error {
7272
return err
7373
}
7474

75+
mux.HandleFunc("GET /_status", func(w http.ResponseWriter, r *http.Request) {
76+
w.WriteHeader(http.StatusOK)
77+
w.Write([]byte("scm-engine status: OK\n\nNOTE: this is a static 'OK', no actual checks are being made"))
78+
})
79+
7580
mux.HandleFunc("POST /gitlab", func(w http.ResponseWriter, r *http.Request) {
7681
ctx := r.Context()
7782

0 commit comments

Comments
 (0)