source: phonelux-backend/src/main/java/finki/it/phoneluxbackend/controllers/ScrapperInfoController.java

Last change on this file was 47f4eaf, checked in by Marko <Marko@…>, 2 years ago

Final features implemented

  • Property mode set to 100644
File size: 717 bytes
Line 
1package finki.it.phoneluxbackend.controllers;
2
3import finki.it.phoneluxbackend.entities.ScrapperInfo;
4import finki.it.phoneluxbackend.services.ScrapperInfoService;
5import lombok.AllArgsConstructor;
6import org.springframework.web.bind.annotation.GetMapping;
7import org.springframework.web.bind.annotation.RequestMapping;
8import org.springframework.web.bind.annotation.RestController;
9
10import java.util.List;
11
12@AllArgsConstructor
13@RestController
14@RequestMapping(path = "/scrapperinfo")
15public class ScrapperInfoController{
16 private final ScrapperInfoService scrapperInfoService;
17
18 @GetMapping
19 public List<ScrapperInfo> getAllScrapperInfos(){
20 return scrapperInfoService.getAllScrapperInfos();
21 }
22
23}
Note: See TracBrowser for help on using the repository browser.