Type of the Body decorator
Injects the complete body as object, string or Buffer depends on the body-parser middleware Requires an express body-parser
class ExampleController { @Post('/:arg0/:arg1') index(@Body() params : object) { // params is `{ id: "foobar" }` for post body "{"id":"foobar"}" } }
Generated using TypeDoc
Type of the Body decorator