Class HomeController
- java.lang.Object
-
- uk.ac.warwick.dcs.sherlock.module.web.controllers.HomeController
-
@Controller public class HomeController extends java.lang.Object
The controller that deals with the homepage for anonymous users
-
-
Constructor Summary
Constructors Constructor Description HomeController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
index(WebmasterProperties webmasterProperties, org.springframework.ui.Model model)
Handles requests to the homepage, loads the contact details from the web master properties and redirects to the dashboard home if the user is logged in
-
-
-
Method Detail
-
index
@RequestMapping("/") public java.lang.String index(WebmasterProperties webmasterProperties, org.springframework.ui.Model model)
Handles requests to the homepage, loads the contact details from the web master properties and redirects to the dashboard home if the user is logged in- Parameters:
webmasterProperties
- details of the webmaster stored in the app propertiesmodel
- holder for model attributes- Returns:
- the path to the homepage
-
-