mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Read billing url from config and add to API
no issue
This commit is contained in:
parent
ccd586ea6e
commit
318484d737
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue