Use new exec API
This commit is contained in:
@@ -786,6 +786,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.createExec = function (id, options, callback) {
|
||||
post('/api/v1/apps/' + id + '/exec', options, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
|
||||
callback(null, data.id);
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.version = function (callback) {
|
||||
get('/api/v1/cloudron/status', null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
|
||||
Reference in New Issue
Block a user