Skip to content

Instantly share code, notes, and snippets.

@aesteve aesteve/Handlers.java
Last active Apr 24, 2016

Embed
What would you like to do?
List<Handler<RoutingContext>> handlers = /* ... */;
handlers.forEach(router.route("/a/b/")::handler); // KO : "You're attaching a handler to a route more than once"
handlers.forEach(handler -> router.route("/a/b").handler(handler)); // works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.