diff --git a/API.md b/API.md index 7160178..3d55f9b 100644 --- a/API.md +++ b/API.md @@ -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