properly group the middleware to not log the rpcdaemon
This commit is contained in:
parent
c12b90f0cd
commit
1fda1f8e90
|
@ -16,6 +16,7 @@ import (
|
|||
)
|
||||
|
||||
func RouteServer(r chi.Router, cfg httpcfg.HttpCfg) {
|
||||
r.Group(func(r chi.Router) {
|
||||
r.Use(middleware.Logger)
|
||||
r.Use(middleware.Recoverer)
|
||||
|
||||
|
@ -45,4 +46,6 @@ func RouteServer(r chi.Router, cfg httpcfg.HttpCfg) {
|
|||
fileServer.ServeHTTP(w, r)
|
||||
}
|
||||
})
|
||||
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue