Options
All
  • Public
  • Public/Protected
  • All
Menu

Module lib/middlewares/rescue

Index

Properties

Properties

default

default: () => (ctx: Context, next: Next) => Promise<void>

Type declaration

    • (): (ctx: Context, next: Next) => Promise<void>
    • Middleware that ensures a well formated error is returned when either of the following happens

      • No route was found
      • The route raised an error
      export

      Returns (ctx: Context, next: Next) => Promise<void>

        • (ctx: Context, next: Next): Promise<void>
        • Parameters

          • ctx: Context
          • next: Next

          Returns Promise<void>

Generated using TypeDoc