Skip to content

Commit

Permalink
fix: Fixing default chain middleware
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Jun 25, 2024
1 parent 9909349 commit ad6473d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/httputils/httputils.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func Handler(handler http.Handler, healthService *health.Service, middlewares ..
mux.Handle(fmt.Sprintf("GET %s", health.ReadyPath), healthService.ReadyHandler())

mux.Handle("GET /version", versionHandler())
mux.Handle("GET /", model.ChainMiddlewares(handler, append([]model.Middleware{httprecover.Middleware}, middlewares...)...))
mux.Handle("/", model.ChainMiddlewares(handler, append([]model.Middleware{httprecover.Middleware}, middlewares...)...))

return mux
}
Expand Down

0 comments on commit ad6473d

Please sign in to comment.