Ghost/core/server/middleware
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
auth-strategies.js Check client is enabled before auth 2015-11-04 16:59:56 +00:00
auth.js Subscribers: Model, API & CSV import/export 2016-05-11 10:28:10 +02:00
cache-control.js deps: grunt-jscs@2.1.0 2015-10-12 19:21:16 +01:00
check-ssl.js SSL redirects 2015-09-25 12:02:14 +02:00
cors.js Add config URLS to CORS whitelist 2016-04-19 13:39:24 +01:00
decide-is-admin.js Moves the decideIsAdmin into its own file. 2015-06-09 14:02:22 -07:00
index.js Version matching middleware 2016-06-09 17:08:44 +01:00
labs.js Subscribers: Model, API & CSV import/export 2016-05-11 10:28:10 +02:00
oauth.js Harvest server side strings 2015-12-19 12:12:16 +01:00
redirect-to-setup.js Middleware Refactor 2015-08-04 14:53:58 +02:00
serve-shared-file.js Prep shared API URL util for use on external sites 2015-12-15 11:50:46 +00:00
spam-prevention.js move private-blogging functionality into an internal app 2016-04-11 08:58:41 -05:00
static-theme.js Use req.path instead of req.url to check for file extension 2016-02-17 19:24:49 +01:00
theme-handler.js Subscribers: router & form helpers 2016-05-11 10:28:11 +02:00
uncapitalise.js Uncapitalise respects subdirectories & no encoding 2015-09-24 18:52:30 +01:00