콘텐츠 상세
- 이전화/다음화 추가
This commit is contained in:
@@ -131,11 +131,19 @@ class AudioContentController(private val service: AudioContentService) {
|
||||
fun getDetail(
|
||||
@PathVariable id: Long,
|
||||
@RequestParam timezone: String,
|
||||
@RequestParam("isAdultContentVisible", required = false) isAdultContentVisible: Boolean? = null,
|
||||
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?
|
||||
) = run {
|
||||
if (member == null) throw SodaException("로그인 정보를 확인해주세요.")
|
||||
|
||||
ApiResponse.ok(service.getDetail(id = id, member = member, timezone = timezone))
|
||||
ApiResponse.ok(
|
||||
service.getDetail(
|
||||
id = id,
|
||||
member = member,
|
||||
isAdultContentVisible = isAdultContentVisible ?: true,
|
||||
timezone = timezone
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
@GetMapping("/{id}/generate-url")
|
||||
|
||||
Reference in New Issue
Block a user