From 05329cbb6c2bc1b4353941ae7082d989a8040739 Mon Sep 17 00:00:00 2001
From: Rhys Evans <EvansRM17@cardiff.ac.uk>
Date: Mon, 4 Dec 2023 15:12:54 +0000
Subject: [PATCH] Initial setup

---
 .../Webpages/WebpageController.java           |  6 ++++++
 .../resources/templates/towns/MapApiTest.html | 20 +++++++++++++++++++
 2 files changed, 26 insertions(+)
 create mode 100644 src/main/resources/templates/towns/MapApiTest.html

diff --git a/src/main/java/Team5/SmartTowns/Webpages/WebpageController.java b/src/main/java/Team5/SmartTowns/Webpages/WebpageController.java
index 37a30366..ee8cd1d6 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 00000000..e1b07277
--- /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
-- 
GitLab