mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +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
15 lines
239 B
JavaScript
15 lines
239 B
JavaScript
const publicConfig = require('../../services/public-config');
|
|
|
|
const site = {
|
|
docName: 'site',
|
|
|
|
read: {
|
|
permissions: false,
|
|
query() {
|
|
return publicConfig.site;
|
|
}
|
|
}
|
|
};
|
|
|
|
module.exports = site;
|