mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
1bd8c18a16
* moved url-utils from server to shared * updated imports of url-utils
18 lines
572 B
JavaScript
18 lines
572 B
JavaScript
const settingsCache = require('../../services/settings/cache');
|
|
const urlUtils = require('../../../shared/url-utils');
|
|
|
|
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 Object.assign({}, settingsCache.getPublic(), {
|
|
url: urlUtils.urlFor('home', true)
|
|
});
|
|
}
|
|
}
|
|
};
|