summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2026-05-06 16:33:55 -0700
committerTyler Hoang <tyler@tylerhoang.xyz>2026-05-06 16:33:55 -0700
commit77115979e3f132de64448fccfd723f12a90ef451 (patch)
tree12a9bc2d710bbd79ebcc22c05e558ed35cd5e51c /main.py
parent98634f72086d327747f32c8cfa4e4503d500475a (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>
Diffstat (limited to 'main.py')
-rw-r--r--main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index b04ad96..a861cda 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 = {"/login", "/logout", "/tyler"}
+ public_paths = {"/login", "/logout", "/tyler", "/films/partial"}
path = request.url.path
if path.startswith("/static") or path in public_paths: