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

Make adding middleware a requirement of RouterMethods #477

Merged
merged 3 commits into from
Jun 17, 2024

Conversation

adam-fowler
Copy link
Member

@adam-fowler adam-fowler commented Jun 16, 2024

Means Router, RouterGroup and RouteCollection all have the same interface. Also made it more explicit that adding a middleware wiil only be applied to routes added after. This should be consistent across the three types.

Given this add Router.add(middleware:) I could remove access to the Router.middlewares but I think that is probably a move too far

Means Router, RouterGroup and RouteCollection all have the same interface. Also made it more explicit that adding a middleware wiil only be applied to routes added after. This should be consistent across the three types.
@adam-fowler adam-fowler merged commit 577873b into main Jun 17, 2024
4 of 5 checks passed
@adam-fowler adam-fowler deleted the router-methods-middleware branch June 17, 2024 09:11
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