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
|
Rev | Line | |
---|
[47f4eaf] | 1 | package finki.it.phoneluxbackend.controllers;
|
---|
| 2 |
|
---|
| 3 | import finki.it.phoneluxbackend.entities.ScrapperInfo;
|
---|
| 4 | import finki.it.phoneluxbackend.services.ScrapperInfoService;
|
---|
| 5 | import lombok.AllArgsConstructor;
|
---|
| 6 | import org.springframework.web.bind.annotation.GetMapping;
|
---|
| 7 | import org.springframework.web.bind.annotation.RequestMapping;
|
---|
| 8 | import org.springframework.web.bind.annotation.RestController;
|
---|
| 9 |
|
---|
| 10 | import java.util.List;
|
---|
| 11 |
|
---|
| 12 | @AllArgsConstructor
|
---|
| 13 | @RestController
|
---|
| 14 | @RequestMapping(path = "/scrapperinfo")
|
---|
| 15 | public 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.