1

Add method to find group by id

Add method to connect details.html to the controller
This commit is contained in:
kasch309
2020-03-13 14:28:16 +01:00
parent 7bbdbad28e
commit eeded221b4
2 changed files with 15 additions and 0 deletions

View File

@ -83,4 +83,11 @@ public class Gruppen2Controller {
return "redirect:/gruppen2/";
}
@GetMapping("/details")
public String showGroupDetails(KeycloakAuthenticationToken token, Model model, @RequestParam (value="group_id") Long group_id) throws EventException {
model.addAttribute("account", keyCloakService.createAccountFromPrincipal(token));
model.addAttribute("group", userService.getGroupById(group_id));
return "details";
}
}