How to replicate the behavior of Leaf v3's before method on Router #297
-
|
I had used the |
Beta Was this translation helpful? Give feedback.
Answered by
mychidarko
Oct 12, 2025
Replies: 1 comment 2 replies
-
|
@mychidarko any chance you'd be able to give me your feedback on this question? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @kczx3 for this particular use-case, something like this might work for you
This way the middleware will run before all your routes, but you can still skip the ones it's not needed on