diff options
author | TAMARA JERINIC <tamara.jerinic@gmail.com> | 2022-12-06 09:58:07 +0100 |
---|---|---|
committer | TAMARA JERINIC <tamara.jerinic@gmail.com> | 2022-12-06 09:58:57 +0100 |
commit | 287662ae7ad688229c222d5d81d1c4386faf0e71 (patch) | |
tree | 35aa2a8327d1a7891c42095d4b3b37d9b1dba00d /Backend/Api | |
parent | 4b12698a4516065d3ad1c6e74c701d6a5e6b8468 (diff) |
Povezana promena korisničkog imena, imena i profilne slike.
Diffstat (limited to 'Backend/Api')
-rw-r--r-- | Backend/Api/Api/Controllers/UserController.cs | 4 |
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) { |