Ghost/core/test/unit
Hannah Wolfe 59e2694acf Misc Middleware cleanup (#7526)
* 💄 Combine slashes & uncapitalise middleware

- these bits of middleware belong together
- ideally they should be optimised

* 🎨 Move ghostLocals out of themeHandler

GhostLocals sets several important values which are needed for every part of the application,
admin, api and theme. Therefore, it doesn't make sense for it to be bundled in the themeHandler.

* 🐛 Fix the uncapitalise middleware

- Updated to make correct use of req.baseUrl, req.path, req.url & req.originalUrl
- Updated the tests to actually cover our weird cases

* 🎨 Move ghostVersion logic out of config

* 💄 Group static / asset-related middleware together

* 🔥 Remove /shared/ asset handling

- The 5 files which are located in `/shared/` are all handled by individual calls to `serveSharedFile`
- Therefore this code is redundant
2016-10-10 21:14:32 +02:00
..
api 🎨 change how we get and set config 2016-09-20 15:59:34 +01:00
auth 🎨 configurable logging with bunyan (#7431) 2016-10-04 16:33:43 +01:00
controllers/frontend Move internal tags out of labs (#7519) 2016-10-10 09:51:03 +01:00
mail 🎨 Use GhostAuth name and example emails (#7475) 2016-10-03 15:11:43 +01:00
metadata Move internal tags out of labs (#7519) 2016-10-10 09:51:03 +01:00
middleware Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00
models/base improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
models_plugins change default order of posts (#7096) 2016-07-15 11:04:10 +01:00
scheduling Error creation (#7477) 2016-10-06 13:27:35 +01:00
server_helpers 🔥 Remove the deprecated body classes (#7510) 2016-10-10 11:38:12 +02:00
sitemap 🎨 source out url utils from ConfigManager (#7347) 2016-09-20 15:59:34 +01:00
storage Error creation (#7477) 2016-10-06 13:27:35 +01:00
utils 🎨 Use GhostAuth name and example emails (#7475) 2016-10-03 15:11:43 +01:00
api_utils_spec.js 🎨 configurable logging with bunyan (#7431) 2016-10-04 16:33:43 +01:00
apps_filters_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
apps_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
config_spec.js 🎨 🔦 refactor content paths (images, apps, themes, storage, scheduling) 2016-09-20 15:59:34 +01:00
errors_spec.js 🎨 optimise error to inherit from in GhostError prototype (#7529) 2016-10-10 18:30:30 +01:00
exporter_spec.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
filters_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
ghost_url_spec.js 🎨 source out url utils from ConfigManager (#7347) 2016-09-20 15:59:34 +01:00
importer_spec.js feature: upload validation middleware (#7208) 2016-08-18 20:25:51 +01:00
migration_fixture_utils_spec.js 🎨 Separate invites from user 2016-09-26 11:08:43 +02:00
migration_spec.js Migration: New database versioning (#7499) 2016-10-06 14:50:55 +01:00
permissions_spec.js 🎨 configurable logging with bunyan (#7431) 2016-10-04 16:33:43 +01:00
rss_spec.js Move internal tags out of labs (#7519) 2016-10-10 09:51:03 +01:00
server_helpers_index_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
server_helpers_template_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
server_spec.js Migration: New database versioning (#7499) 2016-10-06 14:50:55 +01:00
server_utils_spec.js 🔥 remove implementation of validate themes (#7490) 2016-10-05 15:04:03 +01:00
showdown_client_integrated_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
slack_spec.js 🎨 source out url utils from ConfigManager (#7347) 2016-09-20 15:59:34 +01:00
social-urls_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
utils_pipeline_spec.js Update mocha to version 3.0.2 🚀 (#7165) 2016-08-11 08:51:19 +01:00
versioning_spec.js Migration: New database versioning (#7499) 2016-10-06 14:50:55 +01:00
xmlrpc_spec.js Error creation (#7477) 2016-10-06 13:27:35 +01:00