0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/frontend/web/middleware/index.js
Hannah Wolfe 9e8de9ab01
Moved cors middleware to own file
- This cors middleware function has been stuck at the top of the site file for a while
- Move it to it's own file in keeping with our usual patterns for middleware
2022-04-19 11:19:59 +01:00

9 lines
358 B
JavaScript

module.exports = {
cors: require('./cors'),
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')
};