Skip to content

Commit

Permalink
HOTFIX remove ambiguous endpoints from UserController (#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
Legervad authored Dec 23, 2023
1 parent 2bddd01 commit 77cbf39
Showing 1 changed file with 0 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,29 +142,4 @@ class UserController (
return ResponseEntity.ok(ResponseMessage(message = "User deleted successfully"))
}


@GetMapping("/created-posts/{username}")
@ResponseStatus(HttpStatus.OK)
fun getCreatedPosts(@PathVariable username: String): List<PostDTO>{
return userService.getCreatedPosts(username)
}

@GetMapping("/created-games/{username}")
@ResponseStatus(HttpStatus.OK)
fun getCreatedGames(@PathVariable username: String): List<GameDTO>{
return userService.getCreatedGames(username)
}

@GetMapping("/liked-posts/{username}")
@ResponseStatus(HttpStatus.OK)
fun getLikedPosts(@PathVariable username: String): List<PostDTO>{
return userService.getLikedPosts(username)
}

@GetMapping("/liked-comments/{username}")
@ResponseStatus(HttpStatus.OK)
fun getLikedComments(@PathVariable username: String): List<CommentDTO>{
return userService.getLikedComments(username)
}

}

0 comments on commit 77cbf39

Please sign in to comment.