크리에이터 관리자 - 콘텐츠 리스트, 로그인 API 추가

This commit is contained in:
2023-08-23 00:06:09 +09:00
parent d0aebe906b
commit c3cb8fe93b
9 changed files with 450 additions and 1 deletions

View File

@@ -12,6 +12,6 @@ import org.springframework.web.bind.annotation.RestController
@RequestMapping("/menu")
class MenuController(private val service: MenuService) {
@GetMapping
@PreAuthorize("hasAnyRole('AGENT', 'ADMIN')")
@PreAuthorize("hasAnyRole('AGENT', 'ADMIN', 'CREATOR')")
fun getMenus(@AuthenticationPrincipal user: User) = ApiResponse.ok(service.getMenus(user))
}