From 5e1de6d5ea8e115871b08e6ee37db2416eae3cf2 Mon Sep 17 00:00:00 2001 From: Iam54r1n4 Date: Mon, 3 Feb 2025 20:11:00 +0000 Subject: [PATCH] Add /robots.txt to public routes --- core/scripts/webpanel/middleware/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/scripts/webpanel/middleware/auth.py b/core/scripts/webpanel/middleware/auth.py index 9294875..18ea388 100644 --- a/core/scripts/webpanel/middleware/auth.py +++ b/core/scripts/webpanel/middleware/auth.py @@ -20,6 +20,7 @@ class AuthMiddleware(BaseHTTPMiddleware): '''Handles session authentication.''' public_routes = [ '/login', + '/robots.txt' ] if request.url.path in public_routes: return await call_next(request)