.
This commit is contained in:
		| @@ -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? | ||||
|   | ||||
		Reference in New Issue
	
	Block a user