mirror of
https://github.com/mclueppers/xo-server.git
synced 2025-04-08 20:55:02 +02:00
Various updates.
This commit is contained in:
parent
c650a92a1d
commit
9b2c56815b
34
src/api.js
34
src/api.js
@ -514,3 +514,37 @@ Api.fn.xo = {
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Api.fn.host = {
|
||||
'getAll': function () {
|
||||
return this.xo.hosts.get();
|
||||
},
|
||||
};
|
||||
|
||||
Api.fn.network = {
|
||||
'getAll': function () {
|
||||
return this.xo.networks.get();
|
||||
},
|
||||
};
|
||||
|
||||
Api.fn.storage = {
|
||||
'getAll': function () {
|
||||
return this.xo.srs.get();
|
||||
},
|
||||
};
|
||||
|
||||
Api.fn.template = {
|
||||
'getAll': function () {
|
||||
return this.xo.vms.get({
|
||||
'is_template': true,
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
Api.fn.vm = {
|
||||
'getAll': function () {
|
||||
return this.xo.vms.get({
|
||||
'is_template': true,
|
||||
});
|
||||
},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user