feat: Mise en place du premier get de test
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package myapi.api.Controller;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import myapi.api.Data.DAO.TaskDao;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/task")
|
||||
public class TaskController {
|
||||
@Autowired
|
||||
private TaskDao taskDao;
|
||||
|
||||
|
||||
@GetMapping("")
|
||||
public String getTasks(){
|
||||
return this.taskDao.getTasks().getFirst();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user