Update search URL, probably fix GH-368

This commit is contained in:
krateng 2025-01-28 07:16:46 +01:00
parent 63386b5ede
commit 9a6c51a36d

View File

@ -1,4 +1,4 @@
var searches = []
var searches = [];
var debounceTimer;
function search(searchfield) {
@ -12,7 +12,7 @@ function search(searchfield) {
const xhttp = new XMLHttpRequest();
searches.push(xhttp);
xhttp.onreadystatechange = searchresult
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();
}
}, 1000);