From 3ba7e4cfef4de02e3f73f3424ac47b1802a5e250 Mon Sep 17 00:00:00 2001 From: Krateng Date: Sun, 12 May 2019 11:58:51 +0200 Subject: [PATCH] Fixed old url references --- website/javascript/cookies.js | 2 +- website/setup.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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")