0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/data
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
..
db utf8mb4 support (#7409) 2016-09-20 15:59:34 +01:00
export Error creation (#7477) 2016-10-06 13:27:35 +01:00
import Error creation (#7477) 2016-10-06 13:27:35 +01:00
importer Error creation (#7477) 2016-10-06 13:27:35 +01:00
meta Move internal tags out of labs (#7519) 2016-10-10 09:51:03 +01:00
migration Migration: New database versioning (#7499) 2016-10-06 14:50:55 +01:00
migrations/init Migration runner - first iteration (#7501) 2016-10-10 13:27:31 +01:00
schema Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00
sephiroth 🎨 optimise sephiroth error handling (#7531) 2016-10-10 18:31:32 +01:00
slack Error creation (#7477) 2016-10-06 13:27:35 +01:00
validation Error creation (#7477) 2016-10-06 13:27:35 +01:00
xml Move internal tags out of labs (#7519) 2016-10-10 09:51:03 +01:00
timezones.json Adds UTC as select option to timezones select list 2016-06-10 15:19:16 +02:00