diff options
Diffstat (limited to 'Backend')
| -rw-r--r-- | Backend/Api/Api/Controllers/PostController.cs | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/Backend/Api/Api/Controllers/PostController.cs b/Backend/Api/Api/Controllers/PostController.cs index 6970d28..03c3f81 100644 --- a/Backend/Api/Api/Controllers/PostController.cs +++ b/Backend/Api/Api/Controllers/PostController.cs @@ -171,6 +171,14 @@ namespace Api.Controllers              return Ok(await _postService.Get10Best());          } + +        [HttpGet("posts/{id}/getUserPosts")] +        [Authorize(Roles = "User")] +        public async Task<ActionResult<List<PostSend>>> GetUsersPosts(string id) +        { +            return Ok(await _postService.GetUsersPosts(id)); +        } +          [HttpGet("posts/recommended")]          [Authorize(Roles = "User")]          public async Task<ActionResult<List<PostSend>>> Recommended()  | 
