add method

  1. @override
void add(
  1. ControllerRoute route
)
override

Adds a ControllerRoute to the _router and handles the request for it.

Implementation

@override
void add(final ControllerRoute route) {
  final dartnessRouterHandler = DartnessRouterHandler(route);
  _router.add(route.method, route.path, dartnessRouterHandler.handleRoute);
}