Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ControllerOptions

Interface defining options that can be passed to @Controller() decorator

publicapi

Hierarchy

Index

Properties

Properties

Optional host

host: string

Specifies an optional HTTP Request host filter. When configured, methods within the controller will only be routed if the request host matches the specified value.

see

Routing

Optional path

path: string

Specifies an optional route path prefix. The prefix is pre-pended to the path specified in any request decorator in the class.

see

Routing

Optional scope

scope: Scope

Specifies the lifetime of an injected Provider or Controller.

Generated using TypeDoc