apiMethods method

bool apiMethods(
  1. Iterable<MethodReflection> apiMethods, [
  2. APIRequestMethod? requestMethod
])

Adds the routes from apiMethods. See apiMethod.

Implementation

bool apiMethods(
  Iterable<MethodReflection> apiMethods, [
  APIRequestMethod? requestMethod,
]) {
  var addedAny = false;
  for (var m in apiMethods) {
    var added = apiMethod(m, requestMethod);
    addedAny |= added;
  }
  return addedAny;
}