add apiUrlPrefix

Bu işleme şunda yer alıyor:
AJ ONeal 2017-06-14 02:03:22 +00:00
ebeveyn 360a53b84a
işleme 1e32d4a631
2 değiştirilmiş dosya ile 13 ekleme ve 0 silme

Dosyayı Görüntüle

@ -243,3 +243,10 @@ The permissions:
com.example.hello # refers to /srv/walnut/packages/pages/com.example.hello com.example.hello # refers to /srv/walnut/packages/pages/com.example.hello
''' '''
``` ```
API
---
```
req.apiUrlPrefix => https://api.example.com/api/tld.domain.pkg
```

Dosyayı Görüntüle

@ -517,6 +517,12 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
var hasBeenHandled = false; var hasBeenHandled = false;
// Existing (Deprecated) // Existing (Deprecated)
Object.defineProperty(req, 'apiUrlPrefix', {
enumerable: true
, configurable: false
, writable: false
, value: 'https://' + clientApiUri + '/' + pkgId
});
Object.defineProperty(req, 'experienceId', { Object.defineProperty(req, 'experienceId', {
enumerable: true enumerable: true
, configurable: false , configurable: false