fix: middleware
Local Docker Build (Dev) / build-dev (push) Successful in 5s

This commit is contained in:
2025-10-22 17:01:26 -04:00
parent f18df470f8
commit 9acb592d3f
+4 -4
View File
@@ -127,14 +127,14 @@ def main():
"session_manager": session_manager "session_manager": session_manager
} }
# Setup static files and routes # Add authentication middleware if enabled (BEFORE routes)
setup_static_files(app)
# Add authentication middleware if enabled
if auth_enabled: if auth_enabled:
app.add_middleware(SimpleAuthMiddleware, config=config) app.add_middleware(SimpleAuthMiddleware, config=config)
print("🔐 Authentication middleware added to web interface") print("🔐 Authentication middleware added to web interface")
# Setup static files and routes
setup_static_files(app)
# Register web routes # Register web routes
register_web_routes(app, dependencies) register_web_routes(app, dependencies)