Skip to content
Snippets Groups Projects
Commit db8af330 authored by Rhys Nute's avatar Rhys Nute
Browse files

Merge branch 'InitialWebPageControllers' into 'main'

Merger 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."

See merge request !2
parents 59c0ddee 47568088
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.stereotype.Controller;
@Controller
public class WebpageController {
@GetMapping("/Caerleon")
public ModelAndView getCaerleonPage(){
ModelAndView modelAndView = new ModelAndView("towns/caerleon");
return modelAndView;
}
@GetMapping("/Caerphilly")
public ModelAndView getCaerphillyPage(){
ModelAndView modelAndView = new ModelAndView("towns/caerphilly");
return modelAndView;
}
@GetMapping("/Risca")
public ModelAndView getRiscaPage(){
ModelAndView modelAndView = new ModelAndView("towns/risca");
return modelAndView;
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>asdasd</title>
</head>
<body>
sadasdasdasd
</body>
</html>
\ No newline at end of file
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