Skip to content

Update Middleware Pattern

Choose a tag to compare

@blakeembrey blakeembrey released this 23 Jan 19:21
· 50 commits to master since this release

Changed

  • Update the middleware pattern from (req: Request, res: Response, next: () => Promise<void>) => Promise<void> to (req: Request, next: () => Promise<Response>) => Promise<Response>
  • Map middleware errors to Lambda HTTP responses