Ghost/core/server/web/shared/middlewares
Hannah Wolfe 53d14fd8e3 Added Router etc to shared/express + use everywhere
- Added a wrapper around express.Router to our shared/express util
- Also export static and _express
- Use this shared util everywhre, meaning express is only used directly in this one file
- ATM this file is mostly an experiment / debug helper, it might be removed again later
- The aim is to have a minimal framework wrapping express that allows us to:
     - reduce our usage of express() in favour of Router()
     - unify some of our duplicated logic
     - fix some structural issues e.g. Sentry
     - make it easier to understand the codebase
2020-05-01 19:32:57 +01:00
..
api Moved api cors mw into api app 2020-04-22 07:12:25 +01:00
brute.js Added brute protection to content api (#10343) 2019-01-07 20:03:46 +07:00
cache-control.js Refactored cache-control mw to remove dependencies 2020-04-22 18:01:01 +01:00
custom-redirects.js Added Router etc to shared/express + use everywhere 2020-05-01 19:32:57 +01:00
error-handler.js 🐛 Fixed handling of Handlebars errors 2020-04-29 16:32:50 +01:00
index.js Moved normalize image mw into api app 2020-04-22 17:48:54 +01:00
labs.js Swapped common for @tryghost/errors in core/server/web 2020-04-09 19:40:00 +01:00
maintenance.js Swapped common for @tryghost/errors in core/server/web 2020-04-09 19:40:00 +01:00
pretty-urls.js Refactored web/middleware and web/utils to web/shared (#9892) 2018-09-20 20:04:34 +02:00
uncapitalise.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
url-redirects.js Fixed admin host with port causing infinite redirect (#11767) 2020-04-23 19:00:28 +01:00