any<T extends Object> static method

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

one route for GET (and HEAD), POST, PUT, PATCH and DELETE. OPTIONS is left out, so the CORS preflight answer still works.

Route.any('webhook', controller);

Implementation

static Route any<T extends Object>(String route, dynamic controller) {
  return Route()._addMany(_anyMethods, route, _action<T>(controller));
}