Skip to content

Commit

Permalink
feat: add heartbeat middleware
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <[email protected]>
  • Loading branch information
gleich committed Dec 2, 2024
1 parent 881fcaf commit 80c257b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/lcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func main() {

r := chi.NewRouter()
r.Use(middleware.Recoverer)
r.Use(middleware.Heartbeat("/ping"))
r.Use(middleware.RedirectSlashes)
r.HandleFunc("/", rootRedirect)
r.HandleFunc("/metrics", promhttp.Handler().ServeHTTP)
Expand Down

0 comments on commit 80c257b

Please sign in to comment.