delete method

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

Adds a route that responds to a DELETE request.

Implementation

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