diff options
| author | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-26 00:38:23 -0700 |
|---|---|---|
| committer | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-26 00:38:23 -0700 |
| commit | 8a8236e2c05e27f3839a647e8f9d751f4bf988c9 (patch) | |
| tree | 475c2af2ad2f0cd6ddf2f3f5372aefecad698454 /main.py | |
| parent | f3a7b2c3507ab6bb4e5bb0f4ab94804dcc30ce67 (diff) | |
Allow unauthenticated access to /tyler/api/recent
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |
