Correction on restricted path checking (auth-host).

This commit is contained in:
2025-10-05 04:59:05 +00:00
parent cefb9c3d92
commit 11887d15b2
+1 -3
View File
@@ -25,9 +25,7 @@ def is_ui_path(path: str) -> bool:
def is_restricted_path(path: str) -> bool: def is_restricted_path(path: str) -> bool:
"""Check if the path is restricted (API/admin endpoints).""" """Check if the path is restricted (API/admin endpoints)."""
return path.startswith( return path.startswith(("/auth/api/admin/", "/auth/api/user/", "/auth/ws/"))
("/auth/api/admin", "/auth/api/user", "/auth/api/ws", "/auth/ws/")
)
def should_redirect_to_auth_host(path: str) -> bool: def should_redirect_to_auth_host(path: str) -> bool: