diff --git a/www-api/app/Controllers/WrenchApi.php b/www-api/app/Controllers/WrenchApi.php index a16aa85c..aefc3d0a 100644 --- a/www-api/app/Controllers/WrenchApi.php +++ b/www-api/app/Controllers/WrenchApi.php @@ -280,6 +280,21 @@ class WrenchApi extends BaseController } //-- move to another module end + $in["pid"] = 100; + $out = array(); + if ( $call_backend == true){ + // $ret = $wrenchboard->wrenchboard_api($in, $out); + $out['internal_return'] = 0; // $ret; // this is reserved array parameter - to be captured and received before you use the out array() + } + else + { + $out = $local_out; + } + + + //ResultFormatter + $res000 = json_encode( ( new \App\Models\ResultFormatter() )->processOutJson($in, $out)); + $res1 = $this->dummyData($raw_array); return $this->response->setJson($res1);