0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/api/canary/site.js

27 lines
1 KiB
JavaScript
Raw Normal View History

const ghostVersion = require('../../lib/ghost-version');
const settingsCache = require('../../services/settings/cache');
const urlUtils = require('../../lib/url-utils');
// const membersService = require('../../services/members');
const site = {
docName: 'site',
read: {
permissions: false,
query() {
return {
title: settingsCache.get('title'),
description: settingsCache.get('description'),
logo: settingsCache.get('logo'),
// brand: settingsCache.get('brand'), // this is a dev experiments feature & needs to be behind the flag
url: urlUtils.urlFor('home', true),
// plans: membersService.config.getPublicPlans(), // these are new members features that probably won't live here
// allowSelfSignup: membersService.config.getAllowSelfSignup(), // these are new members features that probably won't live here
version: ghostVersion.safe
};
}
}
};
module.exports = site;