Ajout de la page admin et des classes enchere et Utilisateur + test de commit pour JL
This commit is contained in:
4
src/main/java/fr/eni/enchere/bo/Enchere.java
Normal file
4
src/main/java/fr/eni/enchere/bo/Enchere.java
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
package fr.eni.enchere.bo;
|
||||||
|
|
||||||
|
public class Enchere {
|
||||||
|
}
|
||||||
4
src/main/java/fr/eni/enchere/bo/Utilisateur.java
Normal file
4
src/main/java/fr/eni/enchere/bo/Utilisateur.java
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
package fr.eni.enchere.bo;
|
||||||
|
|
||||||
|
public class Utilisateur {
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package fr.eni.enchere.controllers;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.Model;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
public class AdminController {
|
||||||
|
|
||||||
|
public AdminController() {
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping( "/admin")
|
||||||
|
public String viewAccueil(Model model) {
|
||||||
|
return "admin";
|
||||||
|
}
|
||||||
|
}
|
||||||
12
src/main/resources/templates/admin.html
Normal file
12
src/main/resources/templates/admin.html
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="fr">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Panel administrateur</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!-- Ajouter la page de nav bar -->
|
||||||
|
|
||||||
|
<!-- Ajouter le footer -->
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user