onRequest method

Future<HttpActionResult> onRequest(
  1. NodeSpec action,
  2. ActionContext context
)

Implementation

Future<HttpActionResult> onRequest(
    NodeSpec action, ActionContext context) async {
  final restSpec = transformRequestToRest(action, context);
  if (restSpec == null) {
    return HttpActionResult(false);
  }
  return await onRest(
      NodeSpec(
        action.type,
        restSpec,
        actions: action.actions,
      ),
      context);
}