all method

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

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

Implementation

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