hyperbun icon indicating copy to clipboard operation
hyperbun copied to clipboard

Support error handler middlewares

Open leonardoraele opened this issue 1 year ago • 0 comments

This PR adds support for error handler middlewares in express-style syntax.

Notes:

  • Since hyperbun only accepts registering a single middleware at a time, it might make sense to have them being registered with a different method than .middleware() (which this PR does't cover) instead of assuming based on the amount of parameters.
  • This PR is a draft and was not tested yet. There's probably typescript issues in there that still need to be addressed.

leonardoraele avatar Apr 13 '23 14:04 leonardoraele