Ejemplo n.º 1
0
 public async Task <IActionResult> GetMyDTOPosts(string uuid = "", CancellationToken ct = default)
 {
     if (!AuthenticationUtilities.IsAllowedFeed(User))
     {
         return(BadRequest("User has been banned from Feed"));
     }
     return(Ok(await _feedService.GetAllDTOPostsForUserAsync(!string.IsNullOrEmpty(uuid) ? uuid : AuthenticationUtilities.GetUUIDFromIdentity(User), ct)));
 }