- Timestamp:
- 11/11/21 12:59:26 (3 years ago)
- Branches:
- master
- Children:
- 59329aa
- Parents:
- 6c1585f
- Location:
- trip-planner/src/main/java/finki/diplomska/tripplanner/web/rest
- Files:
-
- 2 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 } -
trip-planner/src/main/java/finki/diplomska/tripplanner/web/rest/PlannerRestController.java
r6c1585f rceaed42 71 71 } 72 72 73 @PutMapping(value = "/add-location") 74 public Planner addLocationToPlanner(@RequestParam Long lid, @RequestParam Long pid){ 75 return this.plannerService.addLocationToPlanner(lid, pid); 76 } 73 77 74 }
Note:
See TracChangeset
for help on using the changeset viewer.