0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
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

8 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')
};