Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface QueryParamDecorator

Type of QueryParam decorator

Hierarchy

  • QueryParamDecorator

Callable

  • Injects a query parameter into controller handler

    example
    
    class ExampleController {
      @Get('/')
      index(@QueryParam('param') param : string) {
        // param is "foobar" for url "/?param=foobar"
      }
    }
    

    Parameters

    Returns any

Index

Constructors

Constructors

constructor

Generated using TypeDoc