mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-31 14:55:38 +03:00
91efa4605c
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.
30 lines
511 B
JavaScript
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');
|
|
}
|
|
};
|