Ghost/core/server/api
Aileen Nowak 2f3081fa9f Make AMP optional (#7830)
closes #7769

Because Google AMP is bitching around and shows errors in Googles' webmaster tools for missing post images and blog icons, we decided to make AMP optional. It will be enabled by default, but can be disabled in general settings. Once disabled, the `amp` route doesn't work anymore.

This PR contains the back end changes for Ghost-alpha:
- Adds `amp` to settings table incl default setting `true`
- Adds `amp` value to our settings cache
- Changes the route handling of AMP app to check for the `amp` setting first.
- Adds tests to check the route handling and ghost_head output
- Includes changes to `post-lookup.js` as done by @kirrg001 in #7842
2017-01-17 16:40:06 +01:00
..
app.js Replace memory spam prevention with brute-express (#7579) 2016-11-08 12:33:19 +01:00
authentication.js 🎨 invites roles table into a field on the invites table (#7705) 2016-11-16 09:33:44 +00:00
clients.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
configuration.js 🎨 public client registration updates (#7690) 2016-11-08 14:21:25 +00:00
db.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
index.js 💄 Improve URL consistency, Part 1: urlJoin (#7668) 2016-11-14 14:38:55 +00:00
invites.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
mail.js 🎨 replace process.env.NODE_ENV usages by config.get('env') (#7544) 2016-10-11 13:53:52 +01:00
notifications.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
posts.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
roles.js Refactor handlePermissions 2015-08-11 16:03:57 +02:00
schedules.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
settings.js Make AMP optional (#7830) 2017-01-17 16:40:06 +01:00
slack.js Slack integration 2016-05-08 12:49:15 +02:00
slugs.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
subscribers.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
tags.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
themes.js 💄 Improve URL consistency, Part 1: urlJoin (#7668) 2016-11-14 14:38:55 +00:00
upload.js feature: upload validation middleware (#7208) 2016-08-18 20:25:51 +01:00
users.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
utils.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00