feat: Add ValidationMiddleware to router configuration

This commit is contained in:
2025-11-23 13:40:31 +01:00
parent 54e37e59fc
commit 6bb3a78b88

View File

@@ -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 {