test #140

Merged
klaus merged 5 commits from test into main 2024-03-12 06:20:02 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 48706f0bd5 - Show all commits

View File

@ -13,13 +13,13 @@ import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
@RestController
@PreAuthorize("hasRole('CREATOR')")
@RequestMapping("/creator-admin/member")
class CreatorAdminMemberController(private val service: CreatorAdminMemberService) {
@PostMapping("/login")
fun login(@RequestBody loginRequest: LoginRequest) = service.login(loginRequest)
@PostMapping("/logout")
@PreAuthorize("hasRole('CREATOR')")
fun logout(
@RequestHeader("Authorization") token: String,
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?