separate the provision status and cloudron status

This commit is contained in:
Girish Ramakrishnan
2023-08-10 18:45:27 +05:30
parent 98719aa942
commit 1cdd528b45
13 changed files with 93 additions and 75 deletions

View File

@@ -962,10 +962,10 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.version = function (callback) {
get('/api/v1/cloudron/status', null, function (error, data, status) {
Client.prototype.getProvisionStatus = function (callback) {
get('/api/v1/provision/status', null, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));
if (status !== 200 || typeof data !== 'object') return callback(new ClientError(status, data));
callback(null, data);
});
};