Skip to content

Commit

Permalink
[fix]랭킹 페이지 토큰 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
hysong4u committed Jan 19, 2024
1 parent 4f06078 commit 782ee91
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 782ee91

Please sign in to comment.