Skip to content

Commit

Permalink
hotfix: fix prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
chominho96 committed Apr 6, 2024
1 parent 870f0b1 commit b9ce276
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ public ResponseEntity<Void> addEvent(@RequestBody @Valid final EventAddRequest e
}


@GetMapping("/events")
@GetMapping
public ResponseEntity<EventListResponse> readAllEvent(@RequestParam final String memberId) {
final var events = eventService.findMemberEventAfterToday(memberId);
final List<EventResponse> responses = EventResponse.createList(events);
return ResponseEntity.ok(new EventListResponse(responses));
}

@GetMapping("/events/types")
@GetMapping("/types")
public ResponseEntity<TypeListResponse> readAllTypes() {
final List<TypeResponse> responses = eventService.findEventTypeAll().stream()
.map(TypeResponse::from)
Expand Down

0 comments on commit b9ce276

Please sign in to comment.