We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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("*", (req, rsp, chain) -> { List<Route> routes = chain.routes(); assertEquals("f1", routes.get(0).name()); assertEquals("f2", routes.get(1).name()); assertEquals("f3", routes.get(3).name()); chain.next(req, rsp); }).name("f1"); use("/users/**", (req, rsp, chain) -> { List<Route> routes = chain.routes(); assertEquals("f2", routes.get(0).name()); assertEquals("f3", routes.get(1).name()); chain.next(req, rsp); }).name("f2"); get("/users", req -> { }).name("f3"); }
The routes method give us access to current and next matching routes in the pipeline.
The text was updated successfully, but these errors were encountered:
8d3c1b0
Merge pull request #787 from jooby-project/786
1dcca6c
Add routes method to chain object fix #786
No branches or pull requests
The routes method give us access to current and next matching routes in the pipeline.
The text was updated successfully, but these errors were encountered: