Ghost/core/server/web/api/v2/content
kirrg001 079b41e608 Added body parser to web/api/v2 express app
refs #9866

- req.body is undefined if we don't use the body parser
- the content API only offers "fetch" endpoints, but if a component/module in Ghost relies on req.body being present, it can crash
- e.g. the authentication service checks for the existence of client_id + client_secret in req.query or req.body
- we could theoretically change it from `if (!req.body.client_id` to `if (req.body && !req.body.client_id)`, but that makes the code very hard to read + maintain
- we will use the body parser for the content API now
- req.body will be {}
2018-10-03 00:47:03 +02:00
..
app.js Added body parser to web/api/v2 express app 2018-10-03 00:47:03 +02:00
middleware.js Refactored how we require shared middlewares from web/ (#9893) 2018-09-21 16:17:11 +05:30
routes.js Refactored how we require shared middlewares from web/ (#9893) 2018-09-21 16:17:11 +05:30