0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server
Hannah Wolfe 20f4166cc5 Version matching middleware
refs #6949

- Adds a new VersionMismatchError with status 400 (bad request)
- Adds middleware that checks the X-Ghost-Version header if it is provided
- If it is not provided, the middleware does nothing
- If it is provided, and the versions match, the middleware does nothing
- If it is provided, and the versions don't match, the middleware returns a VersionMismatchError
- Includes both unit and a functional test to prove the middleware works alone and as part of the whole system
2016-06-09 17:08:44 +01:00
..
api Add CSV parser for csv read utility 2016-06-07 10:47:56 +01:00
apps Subscribers: Error Handling for adding subscribers 2016-05-11 12:55:29 +02:00
config Fixes #6935 - Let Bluebird know Promise is not runaway 2016-06-08 07:47:45 -06:00
controllers timezones: support permalinks based on current timezone 2016-05-20 18:14:19 +02:00
data Timezone select list without DST 2016-06-09 10:35:22 +02:00
errors Version matching middleware 2016-06-09 17:08:44 +01:00
events Make sure events gets initialized 2016-04-09 19:52:37 -05:00
helpers Guard for currentUrl being undefined in navigation 2016-06-07 20:10:20 +01:00
mail
middleware Version matching middleware 2016-06-09 17:08:44 +01:00
models Add token added event, update last_login 2016-06-09 09:17:06 +01:00
permissions improvement: general fixes 2016-06-01 07:07:20 +02:00
routes Version matching middleware 2016-06-09 17:08:44 +01:00
storage Revert "Revert "Force UTC at process level"" 2016-06-03 09:06:18 +01:00
translations Version matching middleware 2016-06-09 17:08:44 +01:00
utils Add CSV parser for csv read utility 2016-06-07 10:47:56 +01:00
views move private-blogging functionality into an internal app 2016-04-11 08:58:41 -05:00
filters.js
ghost-server.js
i18n.js improvement: general fixes 2016-06-01 07:07:20 +02:00
index.js Move all middleware/app config to middleware 2016-06-07 17:24:08 +01:00
overrides.js Revert "Revert "Force UTC at process level"" 2016-06-03 09:06:18 +01:00
update-check.js