Skip to content

Commit

Permalink
Changed DefaultCompress as it was previously deprecated and now removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Thracky committed Feb 16, 2020
1 parent 9a2624f commit 5243705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions router.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ func Router(
kissMyRankHandler *KissMyRankHandler,
) http.Handler {
r := chi.NewRouter()

compressor := middleware.Compress(5)
r.Use(middleware.RequestID)
r.Use(middleware.RealIP)
r.Use(middleware.DefaultCompress)
r.Use(compressor)
r.Use(panicHandler)

r.HandleFunc("/login", accountHandler.login)
Expand Down

0 comments on commit 5243705

Please sign in to comment.