mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
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 {} |
||
---|---|---|
.. | ||
v0.1 | ||
v2 | ||
README.md |
Ghost APIs
Ghost is moving towards providing more robust APIs in the future. A plan and decisions can be found here.
WARNING!
The v2 API (/ghost/api/v2/*
endpoints) is to be considered under active development until this message is removed. Please use with caution and don't rely too heavy on it just yet :)