Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BodyDecorator

Type of the Body decorator

Hierarchy

  • BodyDecorator

Callable

  • Injects the complete body as object, string or Buffer depends on the body-parser middleware Requires an express body-parser

    example
    
    class ExampleController {
      @Post('/:arg0/:arg1')
      index(@Body() params : object) {
        // params is `{ id: "foobar" }` for post body "{"id":"foobar"}"
      }
    }
    

    Parameters

    Returns any

Index

Constructors

Constructors

constructor

Generated using TypeDoc