Ghost/core/frontend/web/middleware/index.js
Hannah Wolfe ad9eb35746
Moved theme-specific error handling to frontend
- our themeErrorRenderer is only used in the frontend.. move it there
- this required exposing prepareError as shared middleware
- TODO: move these shared compontents to @tryghost/error
2021-11-29 17:04:01 +00:00

9 lines
329 B
JavaScript

module.exports = {
errorHandler: require('./error-handler'),
handleImageSizes: require('./handle-image-sizes'),
redirectGhostToAdmin: require('./redirect-ghost-to-admin'),
serveFavicon: require('./serve-favicon'),
servePublicFile: require('./serve-public-file'),
staticTheme: require('./static-theme')
};