Add pre-flight check for domain collision
This commit is contained in:
@@ -1721,6 +1721,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.getDNSRecords = function (domain, subdomain, type, callback) {
|
||||
get('/api/v1/domains/' + domain + '/dns?subdomain=' + subdomain + '&type=' + type, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
|
||||
callback(null, data.values);
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.addMailDomain = function (domain, callback) {
|
||||
post('/api/v1/mail', { domain: domain }, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
|
||||
Reference in New Issue
Block a user