commit
d0df31674c
|
@ -15,9 +15,9 @@ import org.springframework.web.bind.annotation.RestController
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/audio-content/theme")
|
@RequestMapping("/audio-content/theme")
|
||||||
@PreAuthorize("hasRole('CREATOR')")
|
|
||||||
class AudioContentThemeController(private val service: AudioContentThemeService) {
|
class AudioContentThemeController(private val service: AudioContentThemeService) {
|
||||||
@GetMapping
|
@GetMapping
|
||||||
|
@PreAuthorize("hasRole('CREATOR')")
|
||||||
fun getThemes(
|
fun getThemes(
|
||||||
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?
|
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?
|
||||||
) = run {
|
) = run {
|
||||||
|
|
|
@ -53,6 +53,7 @@ spring:
|
||||||
redis:
|
redis:
|
||||||
host: ${REDIS_HOST}
|
host: ${REDIS_HOST}
|
||||||
port: ${REDIS_PORT}
|
port: ${REDIS_PORT}
|
||||||
|
ssl: true
|
||||||
|
|
||||||
datasource:
|
datasource:
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
|
Loading…
Reference in New Issue