Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Router#use and a router-wide middleware stack #1681

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jeremyruppel
Copy link

In addition to the route-specific middleware functionality already available in the Router module, I would like to be able to add middleware to a stack that applies to all routes. This patch introduces the use method on Router, which mimics the express API for adding middleware.

@caridy
Copy link
Member

caridy commented Mar 6, 2014

cool, I think this might be useful, let's see what @ericf thinks.

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.

None yet

2 participants