options method

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

Adds a route that responds to a OPTIONS request.

Implementation

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