Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ExpressMiddleware

An Express/Connect compatible middleware function which injects req.db and ensures that the Iridium Core has an active database connection before continuing the request handling process.

Hierarchy

  • ExpressMiddleware

Callable

  • __call(req: ServerRequest, res: ServerResponse, next: function): void
  • An Express/Connect compatible middleware function which injects req.db and ensures that the Iridium Core has an active database connection before continuing the request handling process.

    Parameters

    • req: ServerRequest
    • res: ServerResponse
    • next: function
        • (err?: Error, route?: String): void
        • Parameters

          • Optional err: Error
          • Optional route: String

          Returns void

    Returns void

Generated using TypeDoc