all method

Route<T> all (
  1. String path,
  2. T handler,
  3. {Iterable<T> middleware}
)

Adds a route that responds to any request matching the given path.

Implementation

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