Ghost/core/server/api
Katharina Irrgang 4a4b2f62cc 🐛 re-order api middlewares: cors middleware before connect-slashes (#7861)
closes #7839

- when a browser sends a request to the API without a trailing slash, we are using connect-slashes to redirect permanently
- but because the CORS middleware was registered after the redirect, the CORS headers got lost
2017-01-18 17:36:47 +00:00
..
app.js 🐛 re-order api middlewares: cors middleware before connect-slashes (#7861) 2017-01-18 17:36:47 +00: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