feat(gateway): 接入42和72并为42/52/72启用可刷新令牌
This commit is contained in:
@@ -223,7 +223,7 @@ def is_initialized() -> bool:
|
||||
|
||||
def _should_log(path: str) -> bool:
|
||||
"""只记录 API 请求(/api/ 路径),跳过静态文件、健康检查等。"""
|
||||
return path.startswith("/api/")
|
||||
return path.startswith("/api/") and not path.startswith("/api/v1/auth/")
|
||||
|
||||
|
||||
async def request_logging_middleware(request, call_next):
|
||||
|
||||
Reference in New Issue
Block a user