mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Make sure pid is returned and fixed cyclic dependencies when fetching a single server
This commit is contained in:
parent
39bbe2e0c9
commit
3e34850e44
@ -13,7 +13,8 @@ exports.index = function (req, res){
|
||||
title: server.title,
|
||||
port: server.port,
|
||||
mods: server.mods,
|
||||
})
|
||||
pid: server.pid,
|
||||
});
|
||||
});
|
||||
|
||||
res.send(servers);
|
||||
@ -26,7 +27,14 @@ exports.create = function (req, res){
|
||||
};
|
||||
|
||||
exports.show = function (req, res){
|
||||
res.send(manager.getServer(req.params.server));
|
||||
var server = manager.getServer(req.params.server)
|
||||
res.send({
|
||||
id: server.id,
|
||||
title: server.title,
|
||||
port: server.port,
|
||||
mods: server.mods,
|
||||
pid: server.pid,
|
||||
});
|
||||
};
|
||||
|
||||
exports.update = function(req, res){
|
||||
|
Loading…
Reference in New Issue
Block a user