addRouter method

Application addRouter(
  1. Router router
)

addRouter is a method that adds a new Router to the application. router is a Router that contains the router.

Implementation

Application addRouter(Router router) {
  routers.add(router);
  return this;
}