Skip to content
Snippets Groups Projects
Commit d55c415e authored by Rhys Evans's avatar Rhys Evans
Browse files

Initial Controllers created within WebPages package. ToDo-Implement correct webpage htmls

parent a46c2762
No related branches found
No related tags found
1 merge request!2Merger to resolve "As a user, I want the webpage to be easily operable so that I can navigate through the content effortlessly and accomplish my tasks efficiently."
package Team5.SmartTowns.WebPages;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;
@Controller
public class WebPageController {
@GetMapping()
public ModelAndView getXWebPage("/html page here"){
ModelAndView modelAndView = new ModelAndView("Desired ViewName");
return modelAndView;
}
@GetMapping()
public ModelAndView getYWebPage("/html page here"){
ModelAndView modelAndView = new ModelAndView("Desired ViewName");
return modelAndView;
}
@GetMapping()
public ModelAndView getZWebPage("/html page here"){
ModelAndView modelAndView = new ModelAndView("Desired ViewName");
return modelAndView;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment