Ghost/core/server/web/shared/middlewares/index.js
Hannah Wolfe 295eac6ea1 Moved emit-events mw into parent app
- Moved emit-events from shared to parent as it is not shared
- This file is only used in one place, this updates the code structure to reflect this
- This is one of many similar changes needed to make it easier to refactor to the existing setup
2020-04-21 18:36:42 +01:00

62 lines
1.1 KiB
JavaScript

module.exports = {
get api() {
return require('./api');
},
get image() {
return require('./image');
},
get validation() {
return require('./validation');
},
get brute() {
return require('./brute');
},
get upload() {
return require('./upload');
},
get cacheControl() {
return require('./cache-control');
},
get customRedirects() {
return require('./custom-redirects');
},
get errorHandler() {
return require('./error-handler');
},
get ghostLocals() {
return require('./ghost-locals');
},
get labs() {
return require('./labs');
},
get maintenance() {
return require('./maintenance');
},
get prettyUrls() {
return require('./pretty-urls');
},
get uncapitalise() {
return require('./uncapitalise');
},
get urlRedirects() {
return require('./url-redirects');
},
get updateUserLastSeen() {
return require('./update-user-last-seen');
}
};