We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 698bc73 commit 2121536Copy full SHA for 2121536
cmd/server/main.go
@@ -31,6 +31,8 @@ func main() {
31
mux.HandleFunc("/login", srv.OAuthRedirect)
32
mux.HandleFunc("/oauthCallback", srv.OAuthCallback)
33
mux.HandleFunc("/logout", srv.Logout)
34
+ // A health check endpoint, just returns 200 OK if the web server is responding
35
+ mux.HandleFunc("/health", func(http.ResponseWriter, *http.Request) {})
36
// Static files, from the "static/" dir
37
mux.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
38
0 commit comments