콘텐츠 랭킹 데이터 전체보기 API 추가

This commit is contained in:
2023-10-15 03:23:03 +09:00
parent 333458a184
commit 9146e2e231
2 changed files with 42 additions and 0 deletions

View File

@@ -148,4 +148,13 @@ class AudioContentController(private val service: AudioContentService) {
ApiResponse.ok(service.audioContentLike(request, member))
}
@GetMapping("/ranking")
fun getAudioContentRanking(
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?
) = run {
if (member == null) throw SodaException("로그인 정보를 확인해주세요.")
ApiResponse.ok(service.getAudioContentRanking(member = member))
}
}