add getSiteConfig

This commit is contained in:
AJ ONeal 2017-05-26 21:10:23 +00:00
parent 8dcd1461bd
commit 72032b644b
1 changed files with 9 additions and 0 deletions

View File

@ -165,6 +165,15 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
} }
}); });
Object.defineProperty(req, 'getSiteConfig', {
enumerable: true
, configurable: false
, writable: false
, value: function getSiteMailerProp(section) {
return PromiseA.resolve((siteConfig || {})[section]);
}
});
Object.defineProperty(req, 'getSitePackageConfig', { Object.defineProperty(req, 'getSitePackageConfig', {
enumerable: true enumerable: true
, configurable: false , configurable: false