refactor: move static sites into static, Remove unused PageController and update main.js for page navigation

This commit is contained in:
Erik Foris 2024-07-05 12:34:26 +02:00
parent 6ae3a73a7e
commit 68595e22a7
4 changed files with 1 additions and 14 deletions

View File

@ -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";
}
}

View File

@ -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) {