• Creates and registers a shutdown actions middleware, which registers shutdown action and executes them on app shutdown.

    Parameters

    • app: Application | Express

      express app

    • Optional logger: Logger

      logger to output shutdown actions

    Returns ShutdownActionsMiddleware

Generated using TypeDoc