Changeset ceaed42 for trip-planner/src/main/java/finki/diplomska/tripplanner/web/rest/LocationRestController.java
- Timestamp:
- 11/11/21 12:59:26 (3 years ago)
- Branches:
- master
- Children:
- 59329aa
- Parents:
- 6c1585f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner/src/main/java/finki/diplomska/tripplanner/web/rest/LocationRestController.java
r6c1585f rceaed42 2 2 3 3 import finki.diplomska.tripplanner.models.Location; 4 import finki.diplomska.tripplanner.models.dto.PlannerLocationDto; 4 5 import finki.diplomska.tripplanner.service.LocationService; 5 6 import finki.diplomska.tripplanner.service.PlannerService; … … 50 51 return this.locationService.findLocationsFromRegionForm(regionId, companionId,lengthOfStay, categoryIds); 51 52 } 53 54 @PutMapping(value = "/add-location") 55 public Location addLocationToPlanner(@RequestBody PlannerLocationDto plannerLocationDto){ 56 return this.locationService.addLocationToPlanner(plannerLocationDto); 57 } 58 59 @GetMapping(value = "/planner/locations") 60 public List<Location> getAllLocationsForPlanner (@RequestParam Long plannerId){ 61 return this.locationService.getAllLocationsForPlanner(plannerId); 62 } 52 63 }
Note:
See TracChangeset
for help on using the changeset viewer.