Added a print queue and rate limiting for the API

This commit is contained in:
plane000
2018-07-19 14:35:45 +01:00
parent 436e5726b1
commit 566c7fb0ad
7 changed files with 85 additions and 14 deletions

View File

@@ -8,6 +8,10 @@ async function print() {
}
let http = new XMLHttpRequest();
http.onreadystatechange = function() {
let response = this.responseText;
document.getElementById('response').innerHTML = 'Server responded with: ' + response;
}
let string = '/print?name=' + name + '&coords=' + coords;
await http.open('GET', string, true);