오디션 메인

- 로그인 없이 조회 가능하도록 수정
This commit is contained in:
Klaus 2025-03-22 05:09:08 +09:00
parent f9f9b9aab9
commit 0764247447
2 changed files with 2 additions and 3 deletions

View File

@ -18,13 +18,11 @@ class AuditionController(private val service: AuditionService) {
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?,
pageable: Pageable
) = run {
if (member == null) throw SodaException("로그인 정보를 확인해주세요.")
ApiResponse.ok(
service.getAuditionList(
offset = pageable.offset,
limit = pageable.pageSize.toLong(),
isAdult = member.auth != null
isAdult = member?.auth != null
)
)
}

View File

@ -80,6 +80,7 @@ class SecurityConfig(
.antMatchers("/v2/audio-content/main/home/content/ranking").permitAll()
.antMatchers(HttpMethod.GET, "/faq").permitAll()
.antMatchers(HttpMethod.GET, "/faq/category").permitAll()
.antMatchers("/audition").permitAll()
.anyRequest().authenticated()
.and()
.build()