mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Added stripeDirect config to admin api w/ default
no-issue The flag currently defaults to `true` as we are still using stripe direct. We expose it on the admin api config endpoint so that the Ghost-Admin client can use it to conditionally render
This commit is contained in:
parent
530760cfd0
commit
4c3bd0e2e9
3 changed files with 5 additions and 3 deletions
|
@ -18,7 +18,8 @@ module.exports = {
|
|||
useGravatar: !config.isPrivacyDisabled('useGravatar'),
|
||||
labs: labs.getAll(),
|
||||
clientExtensions: config.get('clientExtensions') || {},
|
||||
enableDeveloperExperiments: config.get('enableDeveloperExperiments') || false
|
||||
enableDeveloperExperiments: config.get('enableDeveloperExperiments') || false,
|
||||
stripeDirect: config.get('stripeDirect')
|
||||
};
|
||||
if (billingUrl) {
|
||||
response.billingUrl = billingUrl;
|
||||
|
|
|
@ -107,5 +107,6 @@
|
|||
"compress": true,
|
||||
"preloadHeaders": false,
|
||||
"adminFrameProtection": true,
|
||||
"sendWelcomeEmail": true
|
||||
"sendWelcomeEmail": true,
|
||||
"stripeDirect": true
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ const expectedProperties = {
|
|||
|
||||
action: ['id', 'resource_type', 'actor_type', 'event', 'created_at', 'actor'],
|
||||
|
||||
config: ['version', 'environment', 'database', 'mail', 'labs', 'clientExtensions', 'enableDeveloperExperiments', 'useGravatar'],
|
||||
config: ['version', 'environment', 'database', 'mail', 'labs', 'clientExtensions', 'enableDeveloperExperiments', 'useGravatar', 'stripeDirect'],
|
||||
|
||||
post: _(schema.posts)
|
||||
.keys()
|
||||
|
|
Loading…
Add table
Reference in a new issue