addRoute method

Route addRoute(
  1. String method,
  2. String path
)

Initialize route

Implementation

Route addRoute(String method, String path) {
  final route = Route(method, path);
  _router.addRoute(route);
  return route;
}