mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 00:11:49 +03:00
21 lines
491 B
JavaScript
21 lines
491 B
JavaScript
|
const ghostVersion = require('../../lib/ghost-version');
|
||
|
const settingsCache = require('../../services/settings/cache');
|
||
|
const urlUtils = require('../../lib/url-utils');
|
||
|
|
||
|
const site = {
|
||
|
docName: 'site',
|
||
|
|
||
|
read: {
|
||
|
permissions: false,
|
||
|
query() {
|
||
|
return {
|
||
|
title: settingsCache.get('title'),
|
||
|
url: urlUtils.urlFor('home', true),
|
||
|
version: ghostVersion.safe
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
module.exports = site;
|