fix: middleware

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