diff --git a/src/main/java/de/uni_passau/fim/PADAS/group3/DataDash/controler/PageController.java b/src/main/java/de/uni_passau/fim/PADAS/group3/DataDash/controler/PageController.java deleted file mode 100644 index f1a0f6f..0000000 --- a/src/main/java/de/uni_passau/fim/PADAS/group3/DataDash/controler/PageController.java +++ /dev/null @@ -1,12 +0,0 @@ -package de.uni_passau.fim.PADAS.group3.DataDash.controler; - -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.GetMapping; - -@Controller -public class PageController { - @GetMapping("/add") - public String getAddPage() { - return "add"; - } -} diff --git a/src/main/resources/templates/add.html b/src/main/resources/static/add.html similarity index 100% rename from src/main/resources/templates/add.html rename to src/main/resources/static/add.html diff --git a/src/main/resources/templates/index.html b/src/main/resources/static/index.html similarity index 100% rename from src/main/resources/templates/index.html rename to src/main/resources/static/index.html diff --git a/src/main/resources/static/main.js b/src/main/resources/static/main.js index 65c62d6..5ddbced 100644 --- a/src/main/resources/static/main.js +++ b/src/main/resources/static/main.js @@ -81,8 +81,7 @@ for (const downvoteButton of downvoteButtons) { // functions of the main page function navigateToAdd() { - //TODO: url to add page not yet implemented, add here - window.location.href = "/add"; + window.location.href = "/add.html"; } function filter(filterString) {