diff --git a/core/server/api/canary/config.js b/core/server/api/canary/config.js index 183e0e7942..44e513e10d 100644 --- a/core/server/api/canary/config.js +++ b/core/server/api/canary/config.js @@ -10,6 +10,8 @@ module.exports = { permissions: false, query() { const billingUrl = config.get('host_settings:billing:enabled') ? config.get('host_settings:billing:url') : ''; + const domainUrl = config.get('host_settings:domain:enabled') ? config.get('host_settings:domain:url') : ''; + const updateUrl = config.get('host_settings:update:enabled') ? config.get('host_settings:update:url') : ''; const response = { version: ghostVersion.full, environment: config.get('env'), @@ -26,6 +28,13 @@ module.exports = { if (billingUrl) { response.billingUrl = billingUrl; } + if (domainUrl) { + response.domainUrl = domainUrl; + } + if (updateUrl) { + response.updateUrl = updateUrl; + } + return response; } } diff --git a/core/server/api/v3/config.js b/core/server/api/v3/config.js index 183e0e7942..44e513e10d 100644 --- a/core/server/api/v3/config.js +++ b/core/server/api/v3/config.js @@ -10,6 +10,8 @@ module.exports = { permissions: false, query() { const billingUrl = config.get('host_settings:billing:enabled') ? config.get('host_settings:billing:url') : ''; + const domainUrl = config.get('host_settings:domain:enabled') ? config.get('host_settings:domain:url') : ''; + const updateUrl = config.get('host_settings:update:enabled') ? config.get('host_settings:update:url') : ''; const response = { version: ghostVersion.full, environment: config.get('env'), @@ -26,6 +28,13 @@ module.exports = { if (billingUrl) { response.billingUrl = billingUrl; } + if (domainUrl) { + response.domainUrl = domainUrl; + } + if (updateUrl) { + response.updateUrl = updateUrl; + } + return response; } }