get method

Route<T> get (String path, T handler, { Iterable<T> middleware })

Adds a route that responds to a GET request.

Implementation

Route<T> get(String path, T handler, {Iterable<T> middleware}) {
  return addRoute('GET', path, handler, middleware: middleware);
}