Moved API endpoints to /api/

This commit is contained in:
Danielv123 committed 2017-03-16 09:23:59 +01:00
1 parent 7b71185bb8
commit a243181856
3 files changed
+23 -23

No files matched your search

+2 -2
View File
@@ -33,14 +33,14 @@ setTimeout(function() {
}
}
}
xmlhttp.open("GET", "slaves", true);
xmlhttp.open("GET", "api/slaves", true);
xmlhttp.send();
}, 0)
// ID of slave, ID of canvasjs div without #
function makeGraph(slaveID, selector) {
post("getStats", {slaveID: slaveID}, function(data){
post("api/getStats", {slaveID: slaveID}, function(data){
console.log("Building chart " + slaveID + " with this data:")
console.log(data)
if(data.length > 0) {