Ghost/core/server/web/shared/middlewares/index.js
Fabien O'Carroll 91efa4605c Used DynamicRedirectManager for Custom Redirects
refs https://github.com/TryGhost/Members/commit/9e59f5a9

Since we have a DynamicRedirectManager for handling adding/removing
redirects at runtime, we no longer need the custom-redirects middleware.
The redirects service does however need an init method now to add the
custom redirects at Ghost boot, so it's been refactored into our Class &
DI pattern.
2021-11-03 07:41:55 +13:00

30 lines
511 B
JavaScript

module.exports = {
get api() {
return require('./api');
},
get brute() {
return require('./brute');
},
get cacheControl() {
return require('./cache-control');
},
get errorHandler() {
return require('./error-handler');
},
get maintenance() {
return require('./maintenance');
},
get prettyUrls() {
return require('./pretty-urls');
},
get urlRedirects() {
return require('./url-redirects');
}
};