get static method

Route get(
  1. String route,
  2. dynamic controller
)

get route

Route.get('path', controller);

Implementation

static Route get(String route, dynamic controller) {
  return Route()._addRoute(
    HttpRequestMethod.GET,
    Route()._prefix + route,
    controller,
  );
}