v1.2版本更新发布
This commit is contained in:
@@ -36,11 +36,10 @@ def is_public_path(path: str) -> bool:
|
||||
for pattern in PUBLIC_PATHS:
|
||||
if re.match(pattern, path):
|
||||
return True
|
||||
# 动态匹配调试入口路径
|
||||
if settings.DEBUG_PATH and path == settings.DEBUG_PATH:
|
||||
# 动态匹配调试入口路径(需同时启用调试功能)
|
||||
if settings.DEBUG_ENABLED and settings.DEBUG_PATH and path == settings.DEBUG_PATH:
|
||||
return True
|
||||
return False
|
||||
return False
|
||||
|
||||
|
||||
class AuthMiddleware(BaseHTTPMiddleware):
|
||||
|
||||
Reference in New Issue
Block a user