Ghost/core/server/api
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
..
authentication.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
clients.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
configuration.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00
db.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
index.js Ghost OAuth (#7451) 2016-09-30 12:45:59 +01:00
invites.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
mail.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
notifications.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
posts.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
roles.js Refactor handlePermissions 2015-08-11 16:03:57 +02:00
schedules.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
settings.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
slack.js Slack integration 2016-05-08 12:49:15 +02:00
slugs.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
subscribers.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
tags.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
themes.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
upload.js feature: upload validation middleware (#7208) 2016-08-18 20:25:51 +01:00
users.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
utils.js Error creation (#7477) 2016-10-06 13:27:35 +01:00