diff options
| author | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-06 16:33:55 -0700 |
|---|---|---|
| committer | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-06 16:33:55 -0700 |
| commit | 77115979e3f132de64448fccfd723f12a90ef451 (patch) | |
| tree | 12a9bc2d710bbd79ebcc22c05e558ed35cd5e51c | |
| parent | 98634f72086d327747f32c8cfa4e4503d500475a (diff) | |
Make All Films tab public on profile page
Add /films/partial to public paths so unauthenticated users can load
all films on /tyler public profile. The All Films tab now works
without requiring login.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
| -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 = {"/login", "/logout", "/tyler"} + public_paths = {"/login", "/logout", "/tyler", "/films/partial"} path = request.url.path if path.startswith("/static") or path in public_paths: |
