mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
0eedb1c556
closes: https://github.com/TryGhost/Toolbox/issues/296 - This is a small change to permit any known API version to redirect to an unversioned URL - We include v2 because although it should have been deleted in 5.0 anyway, in the spirit of the change away from versioned URLs there's absolutely no sense in forcing people to update clients that still work for no reason. - We use a 307, because this preserves the original HTTP method, allowing POSTS, PUTs and DELETEs through as well as GETs - We set the accept-version header on the redirect, meaning that for example with a request to the old /v4/ api, Ghost will respond as though the client sent `accept-version: v4.0` and if there are known breaking changes, it may choose to inform the admin and owner users of these |
||
---|---|---|
.. | ||
client@5751899e5b | ||
frontend | ||
server | ||
shared | ||
app.js | ||
boot.js | ||
bridge.js |