Skip to content

Commit

Permalink
Feat: RestAPI 내 행사 리스트 조회
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsong111 committed May 31, 2024
1 parent 5d9c366 commit d3735d5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,11 @@ public ResponseEntity<String> changeEventStatus(
eventService.changeEventStatus(id, eventStatus, principal.getName());
return ResponseEntity.ok("이벤트 상태 변경 성공");
}

@GetMapping("/my")
@PreAuthorize("hasRole('ROLE_EVENT_MANAGER')")
@Operation(summary = "내 이벤트 목록 조회", description = "내가 생성한 이벤트 목록 조회")
public ResponseEntity<List<EventDetailResponse>> getMyEvent(Principal principal) {
return ResponseEntity.ok(eventService.getEvents(principal.getName()));
}
}

0 comments on commit d3735d5

Please sign in to comment.