Ghost/core/test/functional/routes
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 Version matching middleware 2016-06-09 17:08:44 +01:00
admin_spec.js Always override database config + exit tests on error 2016-03-14 15:39:59 +00:00
channel_spec.js Fix test conflicts 2016-04-13 11:27:26 -05:00
frontend_spec.js timezones: support permalinks based on current timezone 2016-05-20 18:14:19 +02:00