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

Use itty-router 5 before hook instead all(*) #91

Open
elct9620 opened this issue Jul 12, 2024 · 0 comments
Open

Use itty-router 5 before hook instead all(*) #91

elct9620 opened this issue Jul 12, 2024 · 0 comments

Comments

@elct9620
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

In itty-router 4 we have to use this to setup our controller

router
  .all('*', withCommands)
  .all('*', withQueries)
  .all('*', withTestability)

But itty-router 5 we can use before: []

Router({
  before: [withCommands, ...]
})

Describe the solution you'd like

N/A

Describe alternatives you've considered

N/A

Additional context

N/A

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

No branches or pull requests

1 participant