aboutsummaryrefslogtreecommitdiff
path: root/Backend
diff options
context:
space:
mode:
Diffstat (limited to 'Backend')
-rw-r--r--Backend/Api/Api/Controllers/UserController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Backend/Api/Api/Controllers/UserController.cs b/Backend/Api/Api/Controllers/UserController.cs
index 4937467..73d32ea 100644
--- a/Backend/Api/Api/Controllers/UserController.cs
+++ b/Backend/Api/Api/Controllers/UserController.cs
@@ -147,7 +147,7 @@ namespace Api.Controllers
return BadRequest();
}
- [HttpGet("{newUsername}/profile/changeMyUsername")]
+ [HttpGet("{newUsername}/changeMyUsername")]
[Authorize(Roles = "User")]
public async Task<ActionResult<int>> ChangeMyProfileUsername(string newUsername)
{
@@ -155,7 +155,7 @@ namespace Api.Controllers
}
- [HttpGet("{id}/changeMyName")]
+ [HttpGet("{newName}/changeMyName")]
[Authorize(Roles = "User")]
public async Task<ActionResult<bool>> ChangeMyProfileName(string newName)
{