Add button to renew certs of a domain

This commit is contained in:
Girish Ramakrishnan
2018-10-24 15:24:23 -07:00
parent f68912b466
commit 15c0c691ff
3 changed files with 63 additions and 0 deletions

View File

@@ -1380,6 +1380,13 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
}).error(callback); // this doesn't call defaultErrorHandler since we want to handle 404
};
Client.prototype.renewCerts = function (domain, callback) {
post('/api/v1/domains/' + domain + '/renew_certs', { }).success(function (data, status) {
if (status !== 202) return callback(new ClientError(status, data));
callback(null);
}).error(defaultErrorHandler(callback));
};
Client.prototype.removeDomain = function (domain, password, callback) {
var config = {
data: {