Ghost/core/server/services/mega/index.js
Naz 807322dccb Extracted email preview service
refs https://github.com/TryGhost/Team/issues/694

- The code complexity in the email preview's read controller method was breaking the complexity rule in ESLint. To reduce the complexity extracted common parts into mega service
2021-09-02 13:11:10 +04:00

15 lines
247 B
JavaScript

module.exports = {
get mega() {
return require('./mega');
},
get postEmailSerializer() {
return require('./post-email-serializer');
},
get EmailPreview() {
return require('./email-preview');
}
};