Class ZibriApplication

A Zibri application.

Constructors

Properties

Accessors

Methods

Constructors

Properties

options: Required

The options of which the application was build.

server: Server = ...

The underlying http server.

Accessors

Methods

  • Initializes the app.

    Parameters

    • H: typeof Handlebars

      The global handlebars instance, needed to provide some helpers used in templating.

    Returns Promise<void>

  • Starts on the given port.

    Parameters

    • port: number

      The port to start on.

    Returns Promise<void>

    When the app has already been started.

  • Parameters

    • handler: RequestHandler

    Returns Express

  • Parameters

    • ...handlers: RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>[]

    Returns void

  • Parameters

    • path: `/${string}`
    • ...handlers: RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>[]

    Returns void

  • Parameters

    • path: `/${string}`
    • handlers: RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>[]

    Returns void