diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/content/theme/AudioContentThemeController.kt b/src/main/kotlin/kr/co/vividnext/sodalive/content/theme/AudioContentThemeController.kt index 9c85c48..292fccd 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/theme/AudioContentThemeController.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/theme/AudioContentThemeController.kt @@ -15,9 +15,9 @@ import org.springframework.web.bind.annotation.RestController @RestController @RequestMapping("/audio-content/theme") -@PreAuthorize("hasRole('CREATOR')") class AudioContentThemeController(private val service: AudioContentThemeService) { @GetMapping + @PreAuthorize("hasRole('CREATOR')") fun getThemes( @AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member? ) = run { diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 62f24c6..936b925 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -53,6 +53,7 @@ spring: redis: host: ${REDIS_HOST} port: ${REDIS_PORT} + ssl: true datasource: driver-class-name: com.mysql.cj.jdbc.Driver