diff options
author | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-11-14 22:12:00 +0100 |
---|---|---|
committer | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-11-14 22:12:00 +0100 |
commit | 81fae5e55c7a2b5a1ddc8055d32bc310e22e014d (patch) | |
tree | 313f31f4696580a0e19805dd4e9f439ae37ded0b /Backend | |
parent | b5b888192b8d5b6a477afd153d067bbc36f25def (diff) |
Prosiren model za user-a. Omogucen prikaz objava korisnika na njegovom profilu.
Diffstat (limited to 'Backend')
-rw-r--r-- | Backend/Api/Api/Controllers/UserController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Backend/Api/Api/Controllers/UserController.cs b/Backend/Api/Api/Controllers/UserController.cs index 539620b..1ef8234 100644 --- a/Backend/Api/Api/Controllers/UserController.cs +++ b/Backend/Api/Api/Controllers/UserController.cs @@ -47,7 +47,7 @@ namespace Api.Controllers } [HttpGet("posts")] [Authorize(Roles = "User")] - public async Task<ActionResult<PostSend>> SelfPosts() + public async Task<ActionResult<List<PostSend>>> SelfPosts() { var id = await _userService.UserIdFromJwt(); var rez = await _postService.GetUsersPosts(id); |