diff --git a/src/main/java/Team5/SmartTowns/Webpages/WebpageController.java b/src/main/java/Team5/SmartTowns/Webpages/WebpageController.java index 37a30366e5335d1870c202d1a49b4a5d2bca474d..ee8cd1d691b0c1bdf227561034870a369e67ce4a 100644 --- a/src/main/java/Team5/SmartTowns/Webpages/WebpageController.java +++ b/src/main/java/Team5/SmartTowns/Webpages/WebpageController.java @@ -27,6 +27,12 @@ public class WebpageController { return modelAndView; } + @GetMapping("/maps") + public ModelAndView getMapTestAPI(){ + ModelAndView modelAndView = new ModelAndView("Towns/MapApiTest"); + return modelAndView; + } + // @GetMapping("/home") // public ModelAndView getHome(){ // ModelAndView modelAndView = new ModelAndView("Towns/home/homePage"); diff --git a/src/main/resources/templates/towns/MapApiTest.html b/src/main/resources/templates/towns/MapApiTest.html new file mode 100644 index 0000000000000000000000000000000000000000..e1b07277dc3db5ec7769ed9cf6d105308da98897 --- /dev/null +++ b/src/main/resources/templates/towns/MapApiTest.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>MAPTEST</title> + <link rel="stylesheet" th:href="@{/css/templatingstyle.css}"> +</head> +<body> +<header th:insert="~{/towns/Templating.html::header}"></header> +<main> + + + <H1> Map API Test Here</H1> + + + +</main> +<footer th:insert="~{/towns/Templating.html::footer}"></footer> +</body> +</html> \ No newline at end of file