File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ func New(provider core.RoutableProvider, cfg *Config) *Server {
8181 if cfg != nil && cfg .AdminUIEnabled && cfg .DashboardHandler != nil {
8282 authSkipPaths = append (authSkipPaths , "/admin/dashboard" , "/admin/dashboard/*" , "/admin/static/*" )
8383 }
84+ if cfg != nil && cfg .SwaggerEnabled {
85+ authSkipPaths = append (authSkipPaths , "/swagger/*" )
86+ }
8487
8588 // Global middleware stack (order matters)
8689 // Request logger with optional filtering for model-only interactions
@@ -139,7 +142,6 @@ func New(provider core.RoutableProvider, cfg *Config) *Server {
139142 // Public routes
140143 e .GET ("/health" , handler .Health )
141144 if cfg != nil && cfg .SwaggerEnabled {
142- authSkipPaths = append (authSkipPaths , "/swagger/*" )
143145 e .GET ("/swagger/*" , echoswagger .WrapHandler )
144146 }
145147 if cfg != nil && cfg .MetricsEnabled {
You can’t perform that action at this time.
0 commit comments