Changeset e5b84dc for phonelux-backend/src/main/java/finki/it/phoneluxbackend/controllers/PhoneOfferController.java
- Timestamp:
- 09/11/22 18:03:58 (2 years ago)
- Branches:
- master
- Children:
- 775e15e
- Parents:
- 527b93f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
phonelux-backend/src/main/java/finki/it/phoneluxbackend/controllers/PhoneOfferController.java
r527b93f re5b84dc 16 16 @RestController 17 17 @AllArgsConstructor 18 @RequestMapping(path = "/phones/offers/{phoneId}")19 18 public class PhoneOfferController { 20 19 private final PhoneOfferService phoneOfferService; 21 20 private final PhoneService phoneService; 22 21 23 @GetMapping 22 @GetMapping(path = "/phones/offers/{phoneId}") 24 23 public List<PhoneOffer> getOffersForPhone(@PathVariable("phoneId") Long phoneId){ 25 24 return phoneOfferService.getPhoneOffersForPhone(phoneId); 26 25 } 27 26 27 @GetMapping(path = "/phoneoffer/{offerId}") 28 public PhoneOffer getPhoneOffer(@PathVariable("offerId") Long offerId){ 29 return phoneOfferService.getPhoneOffer(offerId); 30 } 31 28 32 }
Note:
See TracChangeset
for help on using the changeset viewer.