@RequestMapping(value = "/delete/{eventId}", method = RequestMethod.POST) public Route deleteEvent(@PathVariable Long eventId) { return routeService.deleteRoute(eventId); }
@RequestMapping(method = RequestMethod.GET) public List<Route> getAll() { return routeService.fetchAllRoutes(); }
@RequestMapping(value = "/{eventId}", method = RequestMethod.GET) public Route getEvent(@PathVariable Long eventId) { return routeService.fetchRoute(eventId); }