Moned out position
This commit is contained in:
@@ -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