Skip to content

Commit

Permalink
add health check
Browse files Browse the repository at this point in the history
  • Loading branch information
jakehobbs committed Jan 19, 2024
1 parent a9f70cf commit 73c3069
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ func main() {
db = getDb()
defer db.Close()

r.Get("/healthz", func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
})

r.Route("/message", func(r chi.Router) {
r.Post("/create", createMessageHandler)
})
Expand Down

0 comments on commit 73c3069

Please sign in to comment.