全局中文化
This commit is contained in:
@@ -124,5 +124,5 @@ async def upload_avatar(
|
||||
async def get_avatar(user_id: str, filename: str):
|
||||
file_path = AVATAR_ROOT / user_id / filename
|
||||
if not file_path.exists():
|
||||
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Avatar not found")
|
||||
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="头像不存在")
|
||||
return FileResponse(file_path)
|
||||
|
||||
Reference in New Issue
Block a user