add getSiteConfig
This commit is contained in:
parent
8dcd1461bd
commit
72032b644b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue