From 79071b95c279fc369e28af4f00aa2751bf7a62b0 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 2 Aug 2017 18:47:07 -0600 Subject: [PATCH] Update API.md --- API.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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