add method

void add(
  1. Iterable<Route> routes
)
override

Adds all the given routes to be served

Implementation

void add(Iterable<Route> routes) {
  if (_servers != null) throw Exception('Server has started!');
  _routes.addAll(routes);
}