addRoute method

void addRoute(
  1. Route route,
  2. String matchPath
)

Adds a Route to the server, together with a path that defines how calls are routed.

Implementation

void addRoute(Route route, String matchPath) {
  route._matchPath = matchPath;
  routes.add(route);
}