test #25

Merged
klaus merged 2 commits from test into main 2023-08-30 08:10:30 +00:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit 378e8f13af - Show all commits

View File

@ -2,6 +2,7 @@ package kr.co.vividnext.sodalive.fcm
import org.springframework.context.ApplicationEventPublisher import org.springframework.context.ApplicationEventPublisher
import org.springframework.security.access.prepost.PreAuthorize import org.springframework.security.access.prepost.PreAuthorize
import org.springframework.transaction.annotation.Transactional
import org.springframework.web.bind.annotation.PostMapping import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestBody import org.springframework.web.bind.annotation.RequestBody
import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RequestMapping
@ -12,6 +13,7 @@ import org.springframework.web.bind.annotation.RestController
@PreAuthorize("hasRole('ADMIN')") @PreAuthorize("hasRole('ADMIN')")
class FcmController(private val applicationEventPublisher: ApplicationEventPublisher) { class FcmController(private val applicationEventPublisher: ApplicationEventPublisher) {
@PostMapping @PostMapping
@Transactional(readOnly = true)
fun send( fun send(
@RequestBody request: PushRequest @RequestBody request: PushRequest
) = run { ) = run {