From 4ba8db48f78e11a1c1518d6f22d95446460f0e28 Mon Sep 17 00:00:00 2001 From: SBCrumb Date: Wed, 22 Oct 2025 17:01:26 -0400 Subject: [PATCH] fix: middleware --- start_web.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/start_web.py b/start_web.py index 794208c..5ea7fc0 100644 --- a/start_web.py +++ b/start_web.py @@ -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)