Last active
April 24, 2016 08:50
-
-
Save aesteve/3e85e976624fd7f89fcbcf4e8e199f1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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