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