Moned out position
This commit is contained in:
@@ -453,7 +453,7 @@ class WrenchApi extends BaseController
|
||||
log_message('critical', "Enpoint-> ".$endpoint );
|
||||
|
||||
$endpoints = $this->endPointList();
|
||||
|
||||
$out = array();
|
||||
$res1 = [];
|
||||
if (array_key_exists($endpoint, $endpoints)) {
|
||||
} else {
|
||||
@@ -500,7 +500,7 @@ class WrenchApi extends BaseController
|
||||
$in["loc"] = $_SERVER["REMOTE_ADDR"];
|
||||
$in = $this->prepareEndPointData($endpoint, $raw_array,$call_backend,$local_out);
|
||||
log_message('critical', "wrenchboard_api-CALL PREPARE DATA".serialize($in) );
|
||||
$out = array();
|
||||
|
||||
|
||||
if ( $call_backend == true && $in["action"] !='' ){
|
||||
$wrenchboard = new \App\Models\BackendModel();
|
||||
|
||||
@@ -133,6 +133,8 @@ if (array_search($_SERVER['REQUEST_METHOD'], $methods) === false) {
|
||||
exit();
|
||||
}
|
||||
|
||||
$out = array();
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
if ( $endpoint == 'uploads'){
|
||||
$local_out=["test_msg"=>'Yes the upload endpoint was hit******** 777'];
|
||||
@@ -460,7 +462,7 @@ $in["pid"] = 100;
|
||||
|
||||
//file_put_contents("in_debug.log", $in); // DEBUG
|
||||
|
||||
$out = array();
|
||||
|
||||
if ( $call_backend == true && $in["action"] !='' ){
|
||||
$ret = $wrenchboard->wrenchboard_api($in, $out);
|
||||
$out['internal_return'] = $ret; // this is reserved array parameter - to be captured and received before you use the out array()
|
||||
|
||||
Reference in New Issue
Block a user