Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ParamDecorator

Type of Param decorator

Hierarchy

  • ParamDecorator

Callable

  • Injects a path parameter into controller handler

    example
    
    class ExampleController {
      @Get('/:id')
      index(@Param('id') id : string) {
        // id is "foobar" for url "/foobar"
      }
    }
    

    Parameters

    Returns any

Index

Constructors

Constructors

constructor

Generated using TypeDoc