-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It's gross and messy to have lots of middleware smushed into the Handler method calls, with lots of paren-nesting. Give the router and each endpoint-terminator (everywhere a Handler can be registered) the ability to register one or more middleware functions that will wrap that Handler. Router middleware will be called for every Handler, and called before Handler-specific middleware.
- Loading branch information
1 parent
e84639d
commit f3f48ca
Showing
2 changed files
with
86 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters