mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 00:13:12 +09:00
Moved API endpoints to /api/
This commit is contained in:
1 parent
7b71185bb8
commit
a243181856
3 files changed
+23
-23
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user