Slave display now only shows connected slaves, autoupdates, trangartime

Added hidden option to show dates in trangartime y-ymd-ymd-y instead of ISO 6801

Ctrl+shift+i
g.trangarTime = true
This commit is contained in:
Danielv123 committed 2016-11-07 13:33:15 +01:00
1 parent 37fdbb68d1
commit eb786ff146
3 files changed
+21 -5

No files matched your search

+1 -1
View File
@@ -45,6 +45,7 @@ db.items.additem = function(object) {
}
var slaves = {}
// world ID management
// slaves post here to tell the server they exist
app.post("/getID", function(req,res) {
// request.body should be an object
// {rconPort, rconPassword, serverPort, mac, time}
@@ -55,7 +56,6 @@ app.post("/getID", function(req,res) {
console.log("Slave: " + req.body.mac + " : " + req.body.serverPort)
}
});
// endpoint for getting information about all our slaves
app.get("/slaves", function(req, res) {
res.header("Access-Control-Allow-Origin", "*");