diff --git a/website/javascript/cookies.js b/website/javascript/cookies.js index 13ed0f6..5bb9e50 100644 --- a/website/javascript/cookies.js +++ b/website/javascript/cookies.js @@ -21,7 +21,7 @@ function saveAPIkey() { function checkAPIkey() { saveAPIkey() - url = "/db/test?key=" + document.getElementById("apikey").value + url = "/api/test?key=" + document.getElementById("apikey").value var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && (this.status == 204 || this.status == 205)) { diff --git a/website/setup.html b/website/setup.html index 206d9a3..d33240e 100644 --- a/website/setup.html +++ b/website/setup.html @@ -29,7 +29,7 @@ keys += "&key=" + encodeURIComponent(apikey) console.log(keys) var xhttp = new XMLHttpRequest(); - xhttp.open("POST","/db/importrules", true); + xhttp.open("POST","/api/importrules", true); xhttp.send(keys); e.innerHTML = e.innerHTML.replace("Add","Remove") @@ -45,7 +45,7 @@ keys += "&key=" + encodeURIComponent(apikey) var xhttp = new XMLHttpRequest(); - xhttp.open("POST","/db/importrules", true); + xhttp.open("POST","/api/importrules", true); xhttp.send(keys); e.innerHTML = e.innerHTML.replace("Remove","Add")