Skip to content

Commit

Permalink
change 201s to 204s (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui authored Oct 25, 2024
1 parent ea478b8 commit 6ee0fe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/v1/avatars.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def upload_avatar(
status_code=_get_status_code_for_error(data.code),
content=data.user_feedback,
)
return Response(status_code=201)
return Response(status_code=204)


@router.get("/api/v1/avatars/{file_path:path}")
Expand Down Expand Up @@ -101,4 +101,4 @@ async def delete_avatar(
status_code=_get_status_code_for_error(data.code),
content=data.user_feedback,
)
return Response(status_code=201)
return Response(status_code=204)

0 comments on commit 6ee0fe5

Please sign in to comment.