mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Updated public site endpoint with more data
no issue This adds new public settings - description, logo, brand - and some public member settings - plans, allowSelfSignup to the open site endpoint which will be used by members.js for data initialization
This commit is contained in:
parent
4b654aaaf6
commit
dd377492bf
1 changed files with 6 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
const ghostVersion = require('../../lib/ghost-version');
|
const ghostVersion = require('../../lib/ghost-version');
|
||||||
const settingsCache = require('../../services/settings/cache');
|
const settingsCache = require('../../services/settings/cache');
|
||||||
const urlUtils = require('../../lib/url-utils');
|
const urlUtils = require('../../lib/url-utils');
|
||||||
|
const membersService = require('../../services/members');
|
||||||
|
|
||||||
const site = {
|
const site = {
|
||||||
docName: 'site',
|
docName: 'site',
|
||||||
|
@ -10,7 +11,12 @@ const site = {
|
||||||
query() {
|
query() {
|
||||||
return {
|
return {
|
||||||
title: settingsCache.get('title'),
|
title: settingsCache.get('title'),
|
||||||
|
description: settingsCache.get('description'),
|
||||||
|
logo: settingsCache.get('logo'),
|
||||||
|
brand: settingsCache.get('brand'),
|
||||||
url: urlUtils.urlFor('home', true),
|
url: urlUtils.urlFor('home', true),
|
||||||
|
plans: membersService.config.getPublicPlans(),
|
||||||
|
allowSelfSignup: membersService.config.getPublicPlans(),
|
||||||
version: ghostVersion.safe
|
version: ghostVersion.safe
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue