mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
3b366dc55d
no issue - moved `config` and `site` API output generation to a `public-config` service allowing all API versions to use `publicConfig.config` or `publicConfig.site` in their query methods - updated `config` and `site` API output serializers to use an allow-list that limits the data returned for each API version
13 lines
223 B
JavaScript
13 lines
223 B
JavaScript
const publicConfig = require('../../services/public-config');
|
|
|
|
module.exports = {
|
|
docName: 'config',
|
|
|
|
read: {
|
|
permissions: false,
|
|
query() {
|
|
return publicConfig.config;
|
|
}
|
|
}
|
|
};
|