This commit is contained in:
Parpaillax
2024-04-23 10:52:19 +02:00
parent 39efe3212f
commit 7ea055f88e
2 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package fr.eni.enchere.controllers;
import fr.eni.enchere.bo.UserProfil;
import org.springframework.ui.Model;
import fr.eni.enchere.bll.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller()
@RequestMapping("/profile")
public class ProfileController {
private final UserService userService;
public ProfileController(UserService userService) {
this.userService = userService;
}
@GetMapping
public String viewProfile(Model model) {
model.addAttribute("user", new UserProfil());
return "profile";
}
}