api: Send employee data to frontend
parent
74ef047c68
commit
ce6a360433
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue