From 8a8236e2c05e27f3839a647e8f9d751f4bf988c9 Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Tue, 26 May 2026 00:38:23 -0700 Subject: Allow unauthenticated access to /tyler/api/recent Co-Authored-By: Claude Sonnet 4.6 --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.py') diff --git a/main.py b/main.py index 16be52f..5057b5e 100644 --- a/main.py +++ b/main.py @@ -16,7 +16,7 @@ load_dotenv() class AuthMiddleware(BaseHTTPMiddleware): async def dispatch(self, request: Request, call_next): - public_paths = {"/about", "/login", "/logout", "/tyler", "/films/partial", "/tyler/films/partial"} + public_paths = {"/about", "/login", "/logout", "/tyler", "/films/partial", "/tyler/films/partial", "/tyler/api/recent"} path = request.url.path if path.startswith("/static") or path in public_paths: -- cgit v1.3-2-g0d8e