Ghost/core/server/web/shared/middlewares/index.js
Katharina Irrgang 213474835b Refactored how we require shared middlewares from web/ (#9893)
refs #9866

- use package notation
- get rid of x requires for middlewares
- improved readability
- do not refactor web/api/v0.1
2018-09-21 16:17:11 +05:30

78 lines
1.4 KiB
JavaScript

module.exports = {
get api() {
return require('./api');
},
get image() {
return require('./image');
},
get validation() {
return require('./validation');
},
get adminRedirects() {
return require('./admin-redirects');
},
get brute() {
return require('./brute');
},
get cacheControl() {
return require('./cache-control');
},
get customRedirects() {
return require('./custom-redirects');
},
get errorHandler() {
return require('./error-handler');
},
get frontendClient() {
return require('./frontend-client');
},
get ghostLocals() {
return require('./ghost-locals');
},
get labs() {
return require('./labs');
},
get logRequest() {
return require('./log-request');
},
get maintenance() {
return require('./maintenance');
},
get prettyUrls() {
return require('./pretty-urls');
},
get serveFavicon() {
return require('./serve-favicon');
},
get servePublicFile() {
return require('./serve-public-file');
},
get staticTheme() {
return require('./static-theme');
},
get uncapitalise() {
return require('./uncapitalise');
},
get urlRedirects() {
return require('./url-redirects');
}
};