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