Skip to content

Instantly share code, notes, and snippets.

@aesteve
Last active April 24, 2016 08:50
Show Gist options
  • Save aesteve/3e85e976624fd7f89fcbcf4e8e199f1e to your computer and use it in GitHub Desktop.
Save aesteve/3e85e976624fd7f89fcbcf4e8e199f1e to your computer and use it in GitHub Desktop.
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