Ghost/core/server/api/v2/settings-public.js
Hannah Wolfe 5d977f23d4 Added Settings endpoint to V2 Content API
refs #10318

- This settings endpoint returns the commonly used, public information from our settings.
- The values are whitelisted each with a custom name for returning from the endpoint
2019-01-04 12:17:32 +00:00

13 lines
234 B
JavaScript

const settingsCache = require('../../services/settings/cache');
module.exports = {
docName: 'settings',
browse: {
permissions: true,
query() {
return settingsCache.getPublic();
}
}
};