Skip to content

Commit

Permalink
Added healthz handler
Browse files Browse the repository at this point in the history
  • Loading branch information
alcounit committed Nov 9, 2020
1 parent dc2dc26 commit b0ca5c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/selenosis/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ func command() *cobra.Command {
router.PathPrefix("/download/{sessionId}").HandlerFunc(app.HandleReverseProxy)
router.PathPrefix("/clipboard/{sessionId}").HandlerFunc(app.HandleReverseProxy)
router.PathPrefix("/status").HandlerFunc(app.HandleStatus)
router.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
}).Methods(http.MethodGet)

srv := &http.Server{
Addr: address,
Expand Down

0 comments on commit b0ca5c5

Please sign in to comment.