parent
f813d8eae4
commit
d024e0fa23
|
@ -7,6 +7,7 @@ import org.springframework.security.access.prepost.PreAuthorize
|
|||
import org.springframework.security.core.annotation.AuthenticationPrincipal
|
||||
import org.springframework.web.bind.annotation.GetMapping
|
||||
import org.springframework.web.bind.annotation.PostMapping
|
||||
import org.springframework.web.bind.annotation.RequestBody
|
||||
import org.springframework.web.bind.annotation.RequestMapping
|
||||
import org.springframework.web.bind.annotation.RequestParam
|
||||
import org.springframework.web.bind.annotation.RestController
|
||||
|
@ -27,7 +28,7 @@ class LiveRoomMenuController(private val service: LiveRoomMenuService) {
|
|||
|
||||
@PostMapping
|
||||
fun createOrUpdateLiveMenu(
|
||||
@RequestParam request: UpdateLiveMenuRequest,
|
||||
@RequestBody request: UpdateLiveMenuRequest,
|
||||
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?
|
||||
) = run {
|
||||
if (member == null) throw SodaException("로그인 정보를 확인해주세요.")
|
||||
|
|
Loading…
Reference in New Issue