Class HttpRouter

Hierarchy

  • HttpRouter

Constructors

Properties

buildId: number = 0
fn?: ((request: HttpRequest) => undefined | ResolvedController)

Type declaration

    • (request: HttpRequest): undefined | ResolvedController
    • Parameters

      Returns undefined | ResolvedController

resolveFn?: ((name: string, parameters: {
    [name: string]: any;
}) => string)

Type declaration

    • (name: string, parameters: {
          [name: string]: any;
      }): string
    • Parameters

      • name: string
      • parameters: {
            [name: string]: any;
        }
        • [name: string]: any

      Returns string

Methods

  • Parameters

    • controller: ClassType<any>
    • module: InjectorModule<any, InjectorModule<any, any>>

    Returns void

  • Parameters

    • method: string
    • url: string

    Returns undefined | ResolvedController

  • Parameters

    • routeName: string
    • parameters: {
          [name: string]: any;
      } = {}
      • [name: string]: any

    Returns string

  • Parameters

    • controllers: (ClassType<any> | {
          controller: ClassType<any>;
          module: InjectorModule<any, InjectorModule<any, any>>;
      })[]
    • tagRegistry: TagRegistry = ...
    • middlewareRegistry: MiddlewareRegistry = ...
    • module: InjectorModule<any, InjectorModule<any, any>> = ...

    Returns HttpRouter

Generated using TypeDoc