0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/test/unit
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
..
controllers/frontend timezones: support permalinks based on current timezone 2016-05-20 18:14:19 +02:00
metadata Merge pull request #6849 from ErisDS/schema-https 2016-05-18 09:32:50 +02:00
middleware Version matching middleware 2016-06-09 17:08:44 +01:00
models_plugins add small permission improvements 2016-05-08 14:22:55 +02:00
server_helpers Guard for currentUrl being undefined in navigation 2016-06-07 20:10:20 +01:00
utils Add CSV parser for csv read utility 2016-06-07 10:47:56 +01:00
api_utils_spec.js Subscribers: finish permission handling 2016-05-11 10:28:12 +02:00
apps_filters_spec.js
apps_spec.js Minor internal apps improvements 2016-04-14 19:05:48 +01:00
config_spec.js timezones: support permalinks based on current timezone 2016-05-20 18:14:19 +02:00
error_handling_spec.js Fix unit test bugs 2016-04-02 21:38:17 -05:00
exporter_spec.js
filters_spec.js
ghost_url_spec.js
importer_spec.js
mail_spec.js
migration_fixture_spec.js Revert "Revert "Force UTC at process level"" 2016-06-03 09:06:18 +01:00
migration_fixture_utils_spec.js Subscribers: Migrations for new table + perms 2016-05-11 10:28:10 +02:00
migration_spec.js Revert "Revert "Force UTC at process level"" 2016-06-03 09:06:18 +01:00
model_events_spec.js Add token added event, update last_login 2016-06-09 09:17:06 +01:00
permissions_spec.js Subscribers: finish permission handling 2016-05-11 10:28:12 +02:00
rss_spec.js Fix unit test bugs 2016-04-02 21:38:17 -05:00
server_helpers_index_spec.js
server_helpers_template_spec.js
server_spec.js
server_utils_spec.js Replace internal tempfile name generator 2016-03-29 15:19:42 -05:00
showdown_client_integrated_spec.js
sitemap_spec.js
slack_spec.js Slack integration 2016-05-08 12:49:15 +02:00
social-urls_spec.js Add helpers for facebook & twitter urls 2016-05-17 16:39:58 +01:00
storage_local-file-store_spec.js Fix unit test bugs 2016-04-02 21:38:17 -05:00
utils_pipeline_spec.js
versioning_spec.js
xmlrpc_spec.js