api: Send employee data to frontend

pull/1/head
Lunix-420 2024-10-31 10:53:37 +01:00
parent 74ef047c68
commit ce6a360433
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ public class PageController {
@GetMapping("/profile")
public String profile(Model model) {
var employees = employeeController.getEmployee(Long.valueOf(1));
var employeeData = employeeController.getEmployee(Long.valueOf(1));
model.addAttribute("employeeData", employeeData);
return "profile";
}
}