Skip to content

Support error handler middlewares#3

Open
leonardoraele wants to merge 2 commits intoEckhardt-D:mainfrom
leonardoraele:patch-1
Open

Support error handler middlewares#3
leonardoraele wants to merge 2 commits intoEckhardt-D:mainfrom
leonardoraele:patch-1

Conversation

@leonardoraele
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant