get method

void get(
  1. String path,
  2. RequestHandler onRequest
)

Implementation

void get(String path, RequestHandler onRequest) {
  createRoute(
    path: path,
    method: RegExp(r"^(get)$", caseSensitive: false),
    onRequest: onRequest,
  );
}