1
1
Fork 1
Dieser Commit ist enthalten in:
AJ ONeal 2017-08-02 18:47:07 -06:00
Ursprung 9fc0436bf2
Commit 79071b95c2
1 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen

10
API.md
Datei anzeigen

@ -146,16 +146,16 @@ module.exports.create = function (conf, deps, app) {
};
```
Special methods for `app`:
--------------------------
### Special methods for `app`:
### app.handlePromise(request, response, promise, message);
```
app.handlePromise(request, response, promise, message);
```
`handlePromise` will respond to the request with the result of `promise` as JSON.
If there is an error, it will include `message` in order to help you debug.
Special properties of `request`:
--------------------------------
### Special properties of `request`:
```js
req.getSiteCapability(pkg) // Promises a capability on behalf of the current site (req.experienceId) without exposing secrets