aboutsummaryrefslogtreecommitdiff
path: root/Backend
diff options
context:
space:
mode:
authorOgnjen Cirkovic <ciraboxkg@gmail.com>2022-11-14 18:11:57 +0100
committerOgnjen Cirkovic <ciraboxkg@gmail.com>2022-11-14 18:11:57 +0100
commit155be78c0e5ac272e3cee558bc8d76f4dc14b947 (patch)
tree9ad64f68a13d2dd8dbb0fe3bb2a38ad3a47c20c6 /Backend
parentc0c7b37d7abaa7d9519c58d5c0caefd0ba42b4de (diff)
Preuzimanja podatka o korisniku sa backend-a i prikaz tih podataka na profile fragmentu.
Diffstat (limited to 'Backend')
-rw-r--r--Backend/Api/Api/Controllers/UserController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Backend/Api/Api/Controllers/UserController.cs b/Backend/Api/Api/Controllers/UserController.cs
index 965ad6b..d4a9cb7 100644
--- a/Backend/Api/Api/Controllers/UserController.cs
+++ b/Backend/Api/Api/Controllers/UserController.cs
@@ -17,7 +17,7 @@ namespace Api.Controllers
}
[HttpPost("profile/pfp")]
[Authorize(Roles = "User")]
- public async Task<ActionResult<User>> setPfp(IFormFile image)
+ public async Task<ActionResult<User>> setPfp([FromForm]IFormFile image)
{
var id = await _userService.UserIdFromJwt();
if(await _userService.AddOrChangePfp(id,image))