Last change
on this file since 19ad843 was 351c43f, checked in by i-ina <76742075+i-ina@…>, 4 years ago |
begining register form
|
-
Property mode
set to
100644
|
File size:
557 bytes
|
Rev | Line | |
---|
[351c43f] | 1 | package it.finki.tinki.web.controller;
|
---|
| 2 |
|
---|
| 3 | import it.finki.tinki.model.Skill;
|
---|
| 4 | import it.finki.tinki.service.SkillService;
|
---|
| 5 | import org.springframework.web.bind.annotation.*;
|
---|
| 6 |
|
---|
| 7 | import java.util.List;
|
---|
| 8 |
|
---|
| 9 | @RestController
|
---|
| 10 | @CrossOrigin("http://localhost:3000")
|
---|
| 11 | @RequestMapping("/api/skills")
|
---|
| 12 | public class SkillController {
|
---|
| 13 |
|
---|
| 14 | SkillService skillService;
|
---|
| 15 |
|
---|
| 16 | public SkillController(SkillService skillService) {
|
---|
| 17 | this.skillService = skillService;
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | @GetMapping()
|
---|
| 21 | public List<Skill> returnSkills(){
|
---|
| 22 | return this.skillService.findAll();
|
---|
| 23 | }
|
---|
| 24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.