Package se.bth.pulse.controller
Class IndexController
java.lang.Object
se.bth.pulse.controller.IndexController
This class is a view controller that serves the index page.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IndexController
public IndexController()
-
-
Method Details
-
showIndex
@GetMapping("/") public String showIndex(org.springframework.ui.Model model, org.springframework.security.core.Authentication authentication) This method is used to render the index page.- Parameters:
model
- - used to pass attributes to the viewauthentication
- - used to get the username and role of the logged-in user- Returns:
- String - the view to be rendered
-