properly group the middleware to not log the rpcdaemon

This commit is contained in:
a 2022-10-25 22:44:31 -05:00
parent c12b90f0cd
commit 1fda1f8e90
1 changed files with 28 additions and 25 deletions

View File

@ -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)
}
})
})
}