Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan committed Feb 14, 2024
1 parent 45c53d8 commit 086c9ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gateway_service/app/gateway_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def read_user(user_id: int):


@app.put("/user/{user_id}", response_model=User, status_code=200)
async def create_user(user_id: int, edit_user: EditUser):
async def update_user(user_id: int, edit_user: EditUser):
async with httpx.AsyncClient() as client:
response = await client.put(f"{USER_SERVICE_URL}{user_id}", json=edit_user.to_dict())

Expand All @@ -64,7 +64,7 @@ async def create_user(user_id: int, edit_user: EditUser):


@app.delete("/user/{user_id}", response_model={}, status_code=204)
async def create_user(user_id: int):
async def delete_user(user_id: int):
async with httpx.AsyncClient() as client:
response = await client.delete(f"{USER_SERVICE_URL}{user_id}")

Expand Down

0 comments on commit 086c9ef

Please sign in to comment.