Skip to content

Commit

Permalink
Document jsonp, closes hapijs#822
Browse files Browse the repository at this point in the history
  • Loading branch information
Eran Hammer committed May 6, 2013
1 parent 9bcb7a7 commit 87572a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@ The following options are available when adding a route:
- `any` - the authentication can be on behalf of a user or application. This is the default value.
- `user` - the authentication must be on behalf of a user.
- `app` - the authentication must be on behalf of an application.
<p></p>
- `jsonp` - enables JSONP support by setting the value to the function name of the callback method. For example, if the value is `'callback'` and
the JSON response is `'{ "a":"b" }'`, the payload will be: `'callback({ "a":"b" });'`
<p></p>
- `description` - route description used for generating documentation (string).
- `notes` - route notes used for generating documentation (string or array of strings).
Expand Down

0 comments on commit 87572a0

Please sign in to comment.