Ghost/core/server/api/v2/site.js
2019-02-25 13:24:19 +01:00

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;