Moned out position

This commit is contained in:
CHIEFSOFT\ameye
2023-06-03 18:54:39 -04:00
parent c9463cca0f
commit e06055c580
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -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();
+3 -1
View File
@@ -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()