From 14fe10c586c136b0d074da5c9b60ea135b9b198e Mon Sep 17 00:00:00 2001 From: Iam54r1n4 Date: Thu, 30 Jan 2025 20:30:46 +0000 Subject: [PATCH] Fix typo in endpoint specification --- core/scripts/webpanel/routers/api/v1/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/scripts/webpanel/routers/api/v1/user.py b/core/scripts/webpanel/routers/api/v1/user.py index 214f843..89c8f02 100644 --- a/core/scripts/webpanel/routers/api/v1/user.py +++ b/core/scripts/webpanel/routers/api/v1/user.py @@ -69,7 +69,7 @@ async def add_user(body: AddUserInputBody): raise HTTPException(status_code=400, detail=f'Error: {str(e)}') -@router.patch('{username}', response_model=DetailResponse) +@router.patch('/{username}', response_model=DetailResponse) async def edit_user(username: str, body: EditUserInputBody): """ Edit a user's details.