diff --git a/src/main/java/fr/organizee/controller/MembreController.java b/src/main/java/fr/organizee/controller/MembreController.java new file mode 100644 index 0000000..d62951a --- /dev/null +++ b/src/main/java/fr/organizee/controller/MembreController.java @@ -0,0 +1,44 @@ +package fr.organizee.controller; + +import fr.organizee.model.Membre; +import fr.organizee.repository.MembreRepository; +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 java.util.List; +/* toto */ +@RestController +@CrossOrigin("*") +public class MembreController { + + @Autowired + private MembreRepository membreRepo; + + @GetMapping("/") + @ResponseBody + public String home() + { + StringBuilder sb = new StringBuilder(); + sb.append("

Affichages des membres

"); + sb.append("