diff --git a/maloja/web/jinja/admin_issues.jinja b/maloja/web/jinja/admin_issues.jinja index bda65bb..9bd64e7 100644 --- a/maloja/web/jinja/admin_issues.jinja +++ b/maloja/web/jinja/admin_issues.jinja @@ -15,7 +15,7 @@ var xhttp = new XMLHttpRequest(); - xhttp.open("POST","/api/newrule?", true); + xhttp.open("POST","/apis/mlj_1/newrule?", true); xhttp.send(keys); e = arguments[0]; line = e.parentNode; @@ -25,7 +25,7 @@ function fullrebuild() { var xhttp = new XMLHttpRequest(); - xhttp.open("POST","/api/rebuild", true); + xhttp.open("POST","/apis/mlj_1/rebuild", true); xhttp.send(); window.location = "/wait"; diff --git a/maloja/web/jinja/admin_setup.jinja b/maloja/web/jinja/admin_setup.jinja index 42f15a4..0f1b39d 100644 --- a/maloja/web/jinja/admin_setup.jinja +++ b/maloja/web/jinja/admin_setup.jinja @@ -24,7 +24,7 @@ keys = "filename=" + encodeURIComponent(filename); console.log(keys); var xhttp = new XMLHttpRequest(); - xhttp.open("POST","/api/importrules", true); + xhttp.open("POST","/apis/mlj_1/importrules", true); xhttp.send(keys); e.innerHTML = e.innerHTML.replace("Add","Remove"); @@ -36,7 +36,7 @@ keys = "remove&filename=" + encodeURIComponent(filename); var xhttp = new XMLHttpRequest(); - xhttp.open("POST","/api/importrules", true); + xhttp.open("POST","/apis/mlj_1/importrules", true); xhttp.send(keys); e.innerHTML = e.innerHTML.replace("Remove","Add"); diff --git a/maloja/web/static/js/manualscrobble.js b/maloja/web/static/js/manualscrobble.js index 3fa1dda..842d94b 100644 --- a/maloja/web/static/js/manualscrobble.js +++ b/maloja/web/static/js/manualscrobble.js @@ -186,7 +186,7 @@ function search_manualscrobbling(searchfield) { else { xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = searchresult_manualscrobbling; - xhttp.open("GET","/api/search?max=5&query=" + encodeURIComponent(txt), true); + xhttp.open("GET","/apis/mlj_1/search?max=5&query=" + encodeURIComponent(txt), true); xhttp.send(); } } diff --git a/maloja/web/static/js/upload.js b/maloja/web/static/js/upload.js index 797543a..8292310 100644 --- a/maloja/web/static/js/upload.js +++ b/maloja/web/static/js/upload.js @@ -1,3 +1,3 @@ function upload(encodedentity,b64) { - neo.xhttprequest("/api/addpicture?" + encodedentity,{"b64":b64},"POST") + neo.xhttprequest("/apis/mlj_1/addpicture?" + encodedentity,{"b64":b64},"POST") }