Ghost/core/server/web/shared/middleware
Hannah Wolfe d7c4168452
Removed HTMLErrorRenderer completely
refs: 0799f02e80
refs: 5e931e2e37

- with the referenced two commits I replaced our old HTML renderer with some code borrowed heavily from finalHandler
- I had intended to modify this further to out put our message, context and help error messages
- However, I ended up doing this in prepareError so it's done for all error renderers
- There's now very little point keeping duplicated code from finalHandler just to output the status code
- If we remove this code, express will fall back to finalHandler anyway, so the output is near identical
2021-11-29 17:00:47 +00:00
..
api Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00
brute.js Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00
cache-control.js Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00
error-handler.js Removed HTMLErrorRenderer completely 2021-11-29 17:00:47 +00:00
index.js Merged our two maintenance middleware into one 2021-11-24 11:27:18 +00:00
pretty-urls.js Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00
uncapitalise.js Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00
url-redirects.js Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00