options<T extends Object> static method

Route options<T extends Object>(
  1. String route,
  2. dynamic controller
)

options route

Route.options('path', controller);

Implementation

static Route options<T extends Object>(String route, dynamic controller) {
  return Route()._addRoute(
    HttpRequestMethod.OPTIONS,
    Route()._join(route),
    _action<T>(controller),
  );
}