Middleware toHandler(Function method, [String fallbackPath])

Source

Middleware toHandler(Function method, [String fallbackPath]) {
  return Route.match(methods, path ?? fallbackPath, handler(method));
}