From 782ee9163b183cd38a98266f1929c9641811e52e Mon Sep 17 00:00:00 2001 From: hysong4u Date: Fri, 19 Jan 2024 18:54:56 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=EB=9E=AD=ED=82=B9=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=ED=86=A0=ED=81=B0=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/sopt/sweet/domain/gift/controller/GiftApi.java | 8 +++----- .../sopt/sweet/domain/gift/controller/GiftController.java | 2 +- .../org/sopt/sweet/global/config/auth/SecurityConfig.java | 3 ++- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/sopt/sweet/domain/gift/controller/GiftApi.java b/src/main/java/org/sopt/sweet/domain/gift/controller/GiftApi.java index e2ca8c3..1b6e8ea 100644 --- a/src/main/java/org/sopt/sweet/domain/gift/controller/GiftApi.java +++ b/src/main/java/org/sopt/sweet/domain/gift/controller/GiftApi.java @@ -218,13 +218,11 @@ ResponseEntity> getTournamentInfo( @GetMapping("ranking/{roomId}") ResponseEntity> getRanking( @Parameter( - description = "authorization token에서 얻은 userId, 임의입력하면 대체됩니다.", + description = "조회하려는 토너먼트가 진행 중인 방의 ID", required = true, - example = "12345" - ) @UserId Long userId, - @PathVariable Long roomId + example = "2" + ) @PathVariable Long roomId ); - @Operation( summary = "친구들이 등록한 선물 조회 API", responses = { diff --git a/src/main/java/org/sopt/sweet/domain/gift/controller/GiftController.java b/src/main/java/org/sopt/sweet/domain/gift/controller/GiftController.java index a97eb9b..49e1e49 100644 --- a/src/main/java/org/sopt/sweet/domain/gift/controller/GiftController.java +++ b/src/main/java/org/sopt/sweet/domain/gift/controller/GiftController.java @@ -60,7 +60,7 @@ public ResponseEntity> getTournamentInfo(@UserId Long userId, } @GetMapping("/ranking/{roomId}") - public ResponseEntity> getRanking(@UserId Long userId, @PathVariable Long roomId) { + public ResponseEntity> getRanking(@PathVariable Long roomId) { final List ranking = giftService.getTournamentRanking(roomId); return SuccessResponse.ok(ranking); } diff --git a/src/main/java/org/sopt/sweet/global/config/auth/SecurityConfig.java b/src/main/java/org/sopt/sweet/global/config/auth/SecurityConfig.java index af5060b..c676de6 100644 --- a/src/main/java/org/sopt/sweet/global/config/auth/SecurityConfig.java +++ b/src/main/java/org/sopt/sweet/global/config/auth/SecurityConfig.java @@ -42,7 +42,8 @@ public class SecurityConfig { "api/oauth/kakao/login/**", "api/opengraph", "api/room/invitations/**", - "api/oauth/reissue/**" + "api/oauth/reissue/**", + "api/gift/ranking/**" }; @Bean