feat: Add ValidationMiddleware to router configuration
This commit is contained in:
1 parent
54e37e59fc
commit
6bb3a78b88
1 file changed
+3
-2
@@ -71,8 +71,9 @@ func NewRouter(cfg RouterConfig) http.Handler {
|
||||
AuthRateLimit: func(r chi.Router) chi.Router {
|
||||
return r.With(middleware.AuthRateLimitMiddlewareWithLimit(cfg.RateLimitConfig.AuthLimit))
|
||||
},
|
||||
CSRFMiddleware: middleware.CSRFMiddleware(),
|
||||
AuthMiddleware: middleware.NewAuth(cfg.AuthService),
|
||||
CSRFMiddleware: middleware.CSRFMiddleware(),
|
||||
AuthMiddleware: middleware.NewAuth(cfg.AuthService),
|
||||
ValidationMiddleware: middleware.ValidationMiddleware(),
|
||||
}
|
||||
|
||||
if cfg.PageHandler != nil {
|
||||
|
||||
Reference in new issue
Block a user