feat(api): standardize REST contracts and auth

This commit is contained in:
2026-07-30 20:38:51 +08:00
parent ae1a657554
commit ba947b616b
86 changed files with 54193 additions and 990 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ async def get_current_metadata_user(
)
raise HTTPException(
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
detail=f"Metadata database error: {exc}",
detail="Metadata database is unavailable",
) from exc
if not user or not user.is_active:
raise HTTPException(
@@ -80,7 +80,7 @@ async def get_current_metadata_user(
)
raise HTTPException(
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
detail=f"Metadata database error: {exc}",
detail="Metadata database is unavailable",
) from exc
return user