Skip to content

Commit

Permalink
feat(api): add recoverer middleware to gracefully handle panics
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckendry committed Aug 23, 2024
1 parent 86597c5 commit 9e88d8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func main() {

r := chi.NewRouter()
r.Use(middleware.Logger)
r.Use(middleware.Recoverer)

handler := handlers.New(store, authService)

Expand Down

0 comments on commit 9e88d8d

Please sign in to comment.