Options
All
  • Public
  • Public/Protected
  • All
Menu

A basic controller.

Type parameters

Hierarchy

  • ControllerBase

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ControllerBase<TApp>(__app: TApp, __rootPath: string, __router: Router, __file: string): ControllerBase<TApp>
  • Initializes a new instance of that class.

    Type parameters

    Parameters

    • __app: TApp

      The underlying app instance.

    • __rootPath: string

      The root path.

    • __router: Router

      The router.

    • __file: string

      The path of the underyling module file.

    Returns ControllerBase<TApp>

Properties

Readonly __app

__app: TApp

The underlying app instance.

Readonly __file

__file: string

The path to the underlying module file.

Readonly __rootPath

__rootPath: string

The root path.

Readonly __router

__router: Router

The Express router.

Methods

__dbg

  • __dbg(message?: any, tag?: string): void
  • Writes a debug message.

    inheritdoc

    Parameters

    • Optional message: any
    • Optional tag: string

    Returns void

Generated using TypeDoc