Skip to content

Commit

Permalink
Merge pull request #338 from olexh/main
Browse files Browse the repository at this point in the history
Remove trailing slash from client endpoints
  • Loading branch information
olexh authored Aug 22, 2024
2 parents bf5963f + 120fd3e commit 4fbf275
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/client/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@


@router.get(
"/", summary="List user clients", response_model=ClientPaginationResponse
"", summary="List user clients", response_model=ClientPaginationResponse
)
async def list_user_clients(
page: int = Depends(get_page),
Expand Down Expand Up @@ -67,7 +67,7 @@ async def get_user_client(client: Client = Depends(validate_user_client)):


@router.post(
"/", summary="Create new user client", response_model=ClientFullResponse
"", summary="Create new user client", response_model=ClientFullResponse
)
async def create_user_client(
create: ClientCreate = Depends(validate_client_create),
Expand Down
4 changes: 2 additions & 2 deletions tests/client_requests/client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
def request_client_create(client, token: str, name: str, description: str, endpoint: str):
return client.post(
"/client/",
"/client",
headers={"Auth": token},
json={
"name": name,
Expand Down Expand Up @@ -53,7 +53,7 @@ def request_client_delete(

def request_list_clients(client, token: str):
return client.get(
"/client/",
"/client",
headers={"Auth": token},
)

Expand Down

0 comments on commit 4fbf275

Please sign in to comment.