put method

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

Adds a route that responds to a PUT request.

Implementation

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