Ghost/core/server/web/site/middleware/index.js
Hannah Wolfe 19dde146c1 Renamed redirect functions for clarity
- we had urlRedirects, urlRedirects.adminRedirect and adminRedirects
- all do kinda similar things, but for different contexts so for now I've done a minimal renaming for clarity
- and updated some comments!!
- also removed totally unnecessary if res.isAdmin clause, as we don't use that, and it was never true
2020-04-22 19:31:36 +01:00

8 lines
283 B
JavaScript

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