Fix typo to actually restart an app
This commit is contained in:
+1
-1
@@ -556,7 +556,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
};
|
||||
|
||||
Client.prototype.restartApp = function (id, callback) {
|
||||
post('/api/v1/apps/' + id + '/start', {}, null, function (error, data, status) {
|
||||
post('/api/v1/apps/' + id + '/restart', {}, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 202) return callback(new ClientError(status, data));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user