Ignore:
Timestamp:
09/07/22 00:51:50 (2 years ago)
Author:
Marko <Marko@…>
Branches:
master
Children:
527b93f
Parents:
dbd4834
Message:

Edited registration and login services

File:
1 edited

Legend:

Unmodified
Added
Removed
  • phonelux-backend/src/main/java/finki/it/phoneluxbackend/controllers/PhoneOfferController.java

    rdbd4834 rf25d07e  
    11package finki.it.phoneluxbackend.controllers;
    22
     3import finki.it.phoneluxbackend.entities.Phone;
    34import finki.it.phoneluxbackend.entities.PhoneOffer;
    45import finki.it.phoneluxbackend.services.PhoneOfferService;
     6import finki.it.phoneluxbackend.services.PhoneService;
     7import lombok.AllArgsConstructor;
    58import org.springframework.beans.factory.annotation.Autowired;
    69import org.springframework.web.bind.annotation.GetMapping;
     
    1215
    1316@RestController
    14 @RequestMapping(path = "/phone/{phoneId}")
     17@AllArgsConstructor
     18@RequestMapping(path = "/phones/offers/{phoneId}")
    1519public class PhoneOfferController {
    1620    private final PhoneOfferService phoneOfferService;
    17 
    18     @Autowired
    19     public PhoneOfferController(PhoneOfferService phoneOfferService) {
    20         this.phoneOfferService = phoneOfferService;
    21     }
     21    private final PhoneService phoneService;
    2222
    2323    @GetMapping
     
    2525        return phoneOfferService.getPhoneOffersForPhone(phoneId);
    2626    }
     27
    2728}
Note: See TracChangeset for help on using the changeset viewer.