post method

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

Adds a route that responds to a POST request.

Implementation

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