diff options
| author | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-11-29 01:36:46 +0100 | 
|---|---|---|
| committer | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-11-29 01:36:46 +0100 | 
| commit | f5d9b62000f8d44288a7d682891bfe1d898d65b7 (patch) | |
| tree | 40fec2629beb53382f86485a3be03c5c43adbcee /Backend/Api | |
| parent | 5fa0fd023429f32a756070b28a6c9268820b147f (diff) | |
| parent | 3f7a3f43debcbd84360f0a0f8a8792a7248d4edc (diff) | |
Merge branch 'develop' of http://gitlab.pmf.kg.ac.rs/BrzoDoLokacije2022/odyssey/brzodolokacije into develop
Diffstat (limited to 'Backend/Api')
| -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()  | 
