Check dns records for generic dns providers

This commit is contained in:
Dennis Schwerdel
2016-12-09 09:19:23 +01:00
committed by Johannes Zellner
parent e58068688c
commit 1065b56380
8 changed files with 121 additions and 5 deletions
+10
View File
@@ -10,6 +10,8 @@ exports = module.exports = {
getCloudronAvatar: getCloudronAvatar,
setCloudronAvatar: setCloudronAvatar,
getExpectedDnsRecords: getExpectedDnsRecords,
getDnsConfig: getDnsConfig,
setDnsConfig: setDnsConfig,
@@ -147,6 +149,14 @@ function getCloudronAvatar(req, res, next) {
});
}
function getExpectedDnsRecords(req, res, next) {
settings.getExpectedDnsRecords(function (error, records) {
if (error) return next(new HttpError(500, error));
next(new HttpSuccess(200, records));
});
}
function getDnsConfig(req, res, next) {
settings.getDnsConfig(function (error, config) {
if (error) return next(new HttpError(500, error));