mapping static method

Implementation

static ControllerRouteMethodDefinition mapping(
  List<HTTPMethod> methods,
  String path,
  ControllerMethodDefinition defn,
) {
  var mapping = RouteMapping(methods, path);
  if (methods.contains(HTTPMethod.ALL)) {
    mapping = RouteMapping([HTTPMethod.ALL], path);
  }
  return ControllerRouteMethodDefinition(defn, mapping);
}