Ghost/core/server/services/settings/public.js
Hannah Wolfe 5d977f23d4 Added Settings endpoint to V2 Content API
refs #10318

- This settings endpoint returns the commonly used, public information from our settings.
- The values are whitelisted each with a custom name for returning from the endpoint
2019-01-04 12:17:32 +00:00

23 lines
606 B
JavaScript

/**
* The settings with type "blog" were originally meant to be public
* This has been misused - unsplash and slack are incorrectly stored there
* https://github.com/TryGhost/Ghost/issues/10318
*
* This file acts as a new whitelist for "public" settings
*/
module.exports = {
title: 'title',
description: 'description',
logo: 'logo',
icon: 'icon',
cover_image: 'cover_image',
facebook: 'facebook',
twitter: 'twitter',
default_locale: 'lang',
active_timezone: 'timezone',
ghost_head: 'ghost_head',
ghost_foot: 'ghost_foot',
navigation: 'navigation'
};