diff --git a/src/js/client.js b/src/js/client.js index 661343fe2..e69a65d9e 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -473,7 +473,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N }; Client.prototype.startApp = function (id, callback) { - post('/api/v1/apps/' + id + '/start', null, function (error, data, status) { + post('/api/v1/apps/' + id + '/start', {}, null, function (error, data, status) { if (error) return callback(error); if (status !== 202) return callback(new ClientError(status, data)); @@ -482,7 +482,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N }; Client.prototype.stopApp = function (id, callback) { - post('/api/v1/apps/' + id + '/stop', null, function (error, data, status) { + post('/api/v1/apps/' + id + '/stop', {}, null, function (error, data, status) { if (error) return callback(error); if (status !== 202) return callback(new ClientError(status, data)); @@ -699,7 +699,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N }; Client.prototype.startBackup = function (callback) { - post('/api/v1/backups', null, function (error, data, status) { + post('/api/v1/backups', {}, null, function (error, data, status) { if (error) return callback(error); if (status !== 202) return callback(new ClientError(status, data)); @@ -708,7 +708,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N }; Client.prototype.stopTask = function (taskId, callback) { - post('/api/v1/tasks/' + taskId + '/stop', null, function (error, data, status) { + post('/api/v1/tasks/' + taskId + '/stop', {}, null, function (error, data, status) { if (error) return callback(error); if (status !== 202) return callback(new ClientError(status, data)); @@ -837,7 +837,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N }; Client.prototype.restartService = function (serviceName, callback) { - post('/api/v1/services/' + serviceName + '/restart', null, function (error, data, status) { + post('/api/v1/services/' + serviceName + '/restart', {}, null, function (error, data, status) { if (error) return callback(error); if (status !== 202) return callback(new ClientError(status, data)); @@ -989,7 +989,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N }; Client.prototype.sendInvite = function (userId, callback) { - post('/api/v1/users/' + userId + '/send_invite', null, function (error, data, status) { + post('/api/v1/users/' + userId + '/send_invite', {}, null, function (error, data, status) { if (error) return callback(error); if (status !== 200) return callback(new ClientError(status, data));