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

Last change on this file since 47f4eaf was 47f4eaf, checked in by Marko <Marko@…>, 20 months 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.