mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 15:33:12 +09:00
researchsync: every server can now research
This commit is contained in:
1 parent
8935d03b4a
commit
d1a295ae4e
4 files changed
+51
-28
No files matched your search
@@ -193,6 +193,16 @@ app.post("/api/getSlaveMeta", function (req, res) {
|
||||
res.send('{"INVALID REQUEST":1}');
|
||||
}
|
||||
});
|
||||
|
||||
app.post("/api/getSlavesMeta", function (req, res) {
|
||||
if(req.body.password){
|
||||
let metas = {};
|
||||
res.send(JSON.stringify(Object.keys(slaves).map(key => metas[key] = slaves[key].meta)));
|
||||
} else {
|
||||
res.status(400);
|
||||
res.send('{"INVALID REQUEST":1}');
|
||||
}
|
||||
});
|
||||
// mod management
|
||||
// should handle uploading and checking if mods are uploaded
|
||||
app.post("/api/checkMod", function(req,res) {
|
||||
|
||||
Reference in new issue
Block a user