fix(proxy_server.py): rename beta end user blocking endpoints

separating end user management from user management
This commit is contained in:
Krrish Dholakia 2024-03-16 13:53:10 -07:00
parent dd151869a3
commit 844d6828c8
2 changed files with 92 additions and 4 deletions

View file

@ -5095,7 +5095,7 @@ async def user_get_requests():
@router.post(
"/user/block",
"/end_user/block",
tags=["End User Management"],
dependencies=[Depends(user_api_key_auth)],
)
@ -5133,11 +5133,12 @@ async def block_user(data: BlockUsers):
return {"blocked_users": records}
except Exception as e:
verbose_proxy_logger.error(f"An error occurred - {str(e)}")
raise HTTPException(status_code=500, detail={"error": str(e)})
@router.post(
"/user/unblock",
"/end_user/unblock",
tags=["End User Management"],
dependencies=[Depends(user_api_key_auth)],
)