mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 05:42:32 +03:00
Read billing url from config and add to API
no issue
This commit is contained in:
parent
ccd586ea6e
commit
318484d737
@ -9,7 +9,8 @@ module.exports = {
|
||||
read: {
|
||||
permissions: false,
|
||||
query() {
|
||||
return {
|
||||
const billingUrl = config.get('host_settings:billing:enabled') ? config.get('host_settings:billing:url') : '';
|
||||
const response = {
|
||||
version: ghostVersion.full,
|
||||
environment: config.get('env'),
|
||||
database: config.get('database').client,
|
||||
@ -19,6 +20,10 @@ module.exports = {
|
||||
clientExtensions: config.get('clientExtensions') || {},
|
||||
enableDeveloperExperiments: config.get('enableDeveloperExperiments') || false
|
||||
};
|
||||
if (billingUrl) {
|
||||
response.billingUrl = billingUrl;
|
||||
}
|
||||
return response;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user