3924acd152
closes #10373 - ghost_head & ghost_foot are deprecated from now on - we want to remove them in v3 - this short fix is dirty (!) - we return codeinjection_* for admin & content api - this is a consistentency change e.g. posts return `post.codeinjection_*` - need to raise a decoupling refactoring issue for the code comments
15 lines
430 B
JavaScript
15 lines
430 B
JavaScript
const settingsCache = require('../../services/settings/cache');
|
|
|
|
module.exports = {
|
|
docName: 'settings',
|
|
|
|
browse: {
|
|
permissions: true,
|
|
query() {
|
|
// @TODO: decouple settings cache from API knowledge
|
|
// The controller fetches models (or cached models) and the API frame for the target API version formats the response.
|
|
return settingsCache.getPublic();
|
|
}
|
|
}
|
|
};
|