Base utilisateur
This commit is contained in:
@@ -11,7 +11,7 @@ public class AdminController {
|
||||
}
|
||||
|
||||
@GetMapping( "/admin")
|
||||
public String viewAccueil(Model model) {
|
||||
public String viewAdminPanel(Model model) {
|
||||
return "admin";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
package fr.eni.enchere.controllers;
|
||||
|
||||
import fr.eni.enchere.bll.UserService;
|
||||
import fr.eni.enchere.bo.User;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/inscription")
|
||||
public class InscriptionController {
|
||||
|
||||
private final UserService userService;
|
||||
|
||||
public InscriptionController(UserService userService) {
|
||||
this.userService = userService;
|
||||
}
|
||||
|
||||
@GetMapping
|
||||
public String viewInscription(Model model) {
|
||||
model.addAttribute("user", new User());
|
||||
return "inscription";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user