From 77cbf39ed98219cb52191d0c4291698222af004c Mon Sep 17 00:00:00 2001 From: Emre <74266381+Legervad@users.noreply.github.com> Date: Sat, 23 Dec 2023 21:25:09 +0300 Subject: [PATCH] HOTFIX remove ambiguous endpoints from UserController (#625) --- .../backend/controller/UserController.kt | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/app/backend/src/main/kotlin/com/gamelounge/backend/controller/UserController.kt b/app/backend/src/main/kotlin/com/gamelounge/backend/controller/UserController.kt index 0bb46d6e..bc8fe76d 100644 --- a/app/backend/src/main/kotlin/com/gamelounge/backend/controller/UserController.kt +++ b/app/backend/src/main/kotlin/com/gamelounge/backend/controller/UserController.kt @@ -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{ - return userService.getCreatedPosts(username) - } - - @GetMapping("/created-games/{username}") - @ResponseStatus(HttpStatus.OK) - fun getCreatedGames(@PathVariable username: String): List{ - return userService.getCreatedGames(username) - } - - @GetMapping("/liked-posts/{username}") - @ResponseStatus(HttpStatus.OK) - fun getLikedPosts(@PathVariable username: String): List{ - return userService.getLikedPosts(username) - } - - @GetMapping("/liked-comments/{username}") - @ResponseStatus(HttpStatus.OK) - fun getLikedComments(@PathVariable username: String): List{ - return userService.getLikedComments(username) - } - } \ No newline at end of file