Changeset dfd5d87 for phonelux-backend/src/main/java/finki/it/phoneluxbackend/controllers/PhoneController.java
- Timestamp:
- 08/29/22 22:31:57 (2 years ago)
- Branches:
- master
- Children:
- dbd4834
- Parents:
- b68ae8d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
phonelux-backend/src/main/java/finki/it/phoneluxbackend/controllers/PhoneController.java
rb68ae8d rdfd5d87 19 19 } 20 20 21 22 // handle request parameters for filtering phones 21 23 @GetMapping 22 24 public List<Phone> getPhones(){ … … 24 26 } 25 27 26 @PostMapping(path = "{phoneId}")27 public List<PhoneOffer> getOffersForPhone(@PathVariable("phoneId") Long phoneId){28 return phoneService.getOffersForPhone(phoneId);29 }30 31 28 }
Note:
See TracChangeset
for help on using the changeset viewer.