refactor: move static sites into static, Remove unused PageController and update main.js for page navigation
This commit is contained in:
parent
6ae3a73a7e
commit
68595e22a7
@ -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";
|
|
||||||
}
|
|
||||||
}
|
|
@ -81,8 +81,7 @@ for (const downvoteButton of downvoteButtons) {
|
|||||||
|
|
||||||
// functions of the main page
|
// functions of the main page
|
||||||
function navigateToAdd() {
|
function navigateToAdd() {
|
||||||
//TODO: url to add page not yet implemented, add here
|
window.location.href = "/add.html";
|
||||||
window.location.href = "/add";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function filter(filterString) {
|
function filter(filterString) {
|
||||||
|
Loading…
Reference in New Issue
Block a user