move provisioning routes into /provision/
This commit is contained in:
@@ -1446,7 +1446,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
setupToken: setupToken
|
||||
};
|
||||
|
||||
post('/api/v1/cloudron/restore', data, null, function (error, data, status) {
|
||||
post('/api/v1/provision/restore', data, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status));
|
||||
|
||||
@@ -1840,7 +1840,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
};
|
||||
|
||||
Client.prototype.setup = function (data, callback) {
|
||||
post('/api/v1/cloudron/setup', data, null, function (error, data, status) {
|
||||
post('/api/v1/provision/setup', data, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
|
||||
@@ -1849,7 +1849,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
};
|
||||
|
||||
Client.prototype.getProvisionBlockDevices = function (callback) {
|
||||
get('/api/v1/cloudron/block_devices', null, function (error, data, status) {
|
||||
get('/api/v1/provision/block_devices', null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
|
||||
@@ -1860,7 +1860,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
Client.prototype.createAdmin = function (data, callback) {
|
||||
var that = this;
|
||||
|
||||
post('/api/v1/cloudron/activate', data, null, function (error, result, status) {
|
||||
post('/api/v1/provision/activate', data, null, function (error, result, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 201) return callback(new ClientError(status, result));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user