diff --git a/backend/sportsmatch/src/main/java/com/sportsmatch/controllers/EventsController.java b/backend/sportsmatch/src/main/java/com/sportsmatch/controllers/EventsController.java index 89ea654c..3c2fdd59 100644 --- a/backend/sportsmatch/src/main/java/com/sportsmatch/controllers/EventsController.java +++ b/backend/sportsmatch/src/main/java/com/sportsmatch/controllers/EventsController.java @@ -72,8 +72,6 @@ public List getEventsHistory(@ParameterObject final Pageable pa @GetMapping("/nearby") public List getNearbyEvents(@RequestBody RequestEventDTO requestEventDTO, @ParameterObject final Pageable pageable) { - public List getNearbyEvents(@RequestParam RequestEventDTO requestEventDTO, - final Pageable pageable) { return eventService.getNearbyEvents(requestEventDTO, pageable); }