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
config Fixes #6935 - Let Bluebird know Promise is not runaway 2016-06-08 07:47:45 -06:00
controllers
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
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
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
filters.js
ghost-server.js
i18n.js
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