Just pass through all the data
This commit is contained in:
+1
-18
@@ -432,24 +432,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.configureApp = function (id, config, callback) {
|
||||
var data = {
|
||||
location: config.location,
|
||||
domain: config.domain,
|
||||
portBindings: config.portBindings,
|
||||
accessRestriction: config.accessRestriction,
|
||||
cert: config.cert,
|
||||
key: config.key,
|
||||
memoryLimit: config.memoryLimit,
|
||||
xFrameOptions: config.xFrameOptions,
|
||||
robotsTxt: config.robotsTxt || null,
|
||||
enableBackup: config.enableBackup,
|
||||
enableAutomaticUpdate: config.enableAutomaticUpdate
|
||||
};
|
||||
|
||||
if ('mailboxName' in config) data.mailboxName = config.mailboxName;
|
||||
if ('alternateDomains' in config) data.alternateDomains = config.alternateDomains;
|
||||
|
||||
Client.prototype.configureApp = function (id, data, callback) {
|
||||
post('/api/v1/apps/' + id + '/configure', data, 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