Skip to content

Commit

Permalink
feat: /healthcheck (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
notnmeyer authored Jan 25, 2024
1 parent 408cbfb commit 45f72a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ func init() {
}

func main() {
// exempt from required headers, etc.
http.HandleFunc("/healthcheck", func(w http.ResponseWriter, t *http.Request) {
w.WriteHeader(http.StatusOK)
})

http.HandleFunc("/", handler)
listenAddr := fmt.Sprintf(":%d", c.port)
fmt.Printf("Listening on %s...\n", listenAddr)
Expand Down

0 comments on commit 45f72a8

Please sign in to comment.