Skip to content

Commit

Permalink
added more documentation to @requestBody
Browse files Browse the repository at this point in the history
  • Loading branch information
lholznagel committed Jul 13, 2017
1 parent 37d7252 commit 3ff4f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Binds a method parameter to request.params object or to a specific parameter if
Binds a method parameter to request.query or to a specific query parameter if a name is passed.

### `@requestBody(name?: string)`
Binds a method parameter to request.body or to a specific body property if a name is passed.
Binds a method parameter to request.body or to a specific body property if a name is passed. If the bodyParser middleware is not used on the express app, this will bind the method parameter to the express request object.

### `@requestHeaders(name?: string)`
Binds a method parameter to the request headers.
Expand Down

0 comments on commit 3ff4f3d

Please sign in to comment.