Skip to content

Commit

Permalink
Merge pull request #99 from SWEET-DEVELOPERS/feature/#98-gift
Browse files Browse the repository at this point in the history
[fix]๋žญํ‚น ํŽ˜์ด์ง€ ํ† ํฐ ์ œ๊ฑฐ
  • Loading branch information
hysong4u authored Jan 19, 2024
2 parents 6541be1 + 782ee91 commit 06c43c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,11 @@ ResponseEntity<SuccessResponse<?>> getTournamentInfo(
@GetMapping("ranking/{roomId}")
ResponseEntity<SuccessResponse<?>> 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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public ResponseEntity<SuccessResponse<?>> getTournamentInfo(@UserId Long userId,
}

@GetMapping("/ranking/{roomId}")
public ResponseEntity<SuccessResponse<?>> getRanking(@UserId Long userId, @PathVariable Long roomId) {
public ResponseEntity<SuccessResponse<?>> getRanking(@PathVariable Long roomId) {
final List<TournamentRankingResponseDto> ranking = giftService.getTournamentRanking(roomId);
return SuccessResponse.ok(ranking);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06c43c1

Please sign in to comment.