apiReflection method
Adds routes from a reflection
, one for each API method in the reflected class.
See ClassReflectionExtension.apiMethods.
requestMethod
the route request method.
Implementation
bool apiReflection(ClassReflection reflection,
[APIRequestMethod? requestMethod]) {
var methods = reflection.apiMethods();
return apiMethods(methods, requestMethod);
}