diff --git a/src/main/java/fr/organizee/controller/MembreController.java b/src/main/java/fr/organizee/controller/MembreController.java index d62951a..d96e0a9 100644 --- a/src/main/java/fr/organizee/controller/MembreController.java +++ b/src/main/java/fr/organizee/controller/MembreController.java @@ -1,16 +1,17 @@ package fr.organizee.controller; import fr.organizee.model.Membre; +import fr.organizee.model.Team; import fr.organizee.repository.MembreRepository; +import fr.organizee.repository.TeamRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.CrossOrigin; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import java.util.List; +import java.util.Optional; + /* toto */ @RestController @CrossOrigin("*") @@ -19,17 +20,20 @@ public class MembreController { @Autowired private MembreRepository membreRepo; + @Autowired + private TeamRepository teamRepo; + @GetMapping("/") @ResponseBody public String home() { StringBuilder sb = new StringBuilder(); sb.append("

Affichages des membres

"); - sb.append("