Router router = Router.router(this.vertx);
Router subRouter = Router.router(this.vertx);
router.mountSubRouter("/subroute", subRouter);
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/f2955716-4181-44b8-a84c-56513bd5ca18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Is it what are you looking for?Router router = Router.router(this.vertx);
Router subRouter = Router.router(this.vertx);
router.mountSubRouter("/subroute", subRouter);
On Thu, Mar 28, 2019 at 12:55 PM Liangchou Zhou <liangc...@gmail.com> wrote:
1 main router to bind all the handlers is not good.--how to organize the router, e.g. offload to subrouter?there is mountSubrouter, but i can't find how to use it. can someone how the code example?thanks
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ve...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/f2955716-4181-44b8-a84c-56513bd5ca18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Ronoel Júnior