cleanup
This commit is contained in:
@@ -617,7 +617,7 @@ class WrenchApi extends BaseController
|
||||
//$raw_array["file_data"] = $out['file_data'] = $in['file_data'] =""; // no need to carry raw file data anymore - saved or cached ath this point
|
||||
if (is_array($raw_array) && array_key_exists("file_data", $raw_array)) unset($raw_array["file_data"]);
|
||||
if (is_array($out) && array_key_exists("file_data", $out)) unset($out["file_data"]);
|
||||
if (is_array($int) && array_key_exists("file_data", $in)) unset($in["file_data"]);
|
||||
if (is_array($in) && array_key_exists("file_data", $in)) unset($in["file_data"]);
|
||||
} catch (Exception $e) {
|
||||
$error = 'Caught exception: '. $e->getMessage();
|
||||
log_message('critical', "ERROR ENDPOINT TESTING UPLOAD-> ".$error );
|
||||
|
||||
@@ -92,7 +92,6 @@ class WrenchBanners extends BaseController
|
||||
}
|
||||
|
||||
$extra_banner_call = false;
|
||||
|
||||
if($extra_banner_call){
|
||||
$extra_out["offers_list"] = $this->bannerGetOffers($in);
|
||||
$extra_out["activetaskslist"] = $this->bannerGetActiveTasks($in);
|
||||
|
||||
@@ -9,16 +9,8 @@ class WrenchTransactions extends BaseController
|
||||
use ResponseTrait;
|
||||
public function apigate(){
|
||||
log_message('critical', "WrenchTransactions-Gate");
|
||||
// header('Access-Control-Allow-Origin: *');
|
||||
log_message('critical', "0002");
|
||||
$call_backend = true;
|
||||
|
||||
// header("Access-Control-Allow-Headers: Origin, X-API-KEY, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Access-Control-Allow-Headers, Authorization, observe, enctype, Content-Length, X-Csrf-Token");
|
||||
// log_message('critical', "0003");
|
||||
// header("Access-Control-Allow-Methods: GET, PUT, POST, DELETE, PATCH, OPTIONS");
|
||||
// header("Access-Control-Allow-Credentials: true");
|
||||
// header("Access-Control-Max-Age: 3600");
|
||||
// header('content-type: application/json; charset=utf-8');
|
||||
$method = $_SERVER['REQUEST_METHOD'];
|
||||
if ($method == "OPTIONS") {
|
||||
header("HTTP/1.1 200 OK CORS");
|
||||
@@ -26,8 +18,6 @@ class WrenchTransactions extends BaseController
|
||||
die();
|
||||
}
|
||||
|
||||
//$request = service('request');
|
||||
// what is the endpoint
|
||||
$uri = urldecode(current_url(true));
|
||||
$findme = '?';
|
||||
$pos = strpos($uri, $findme);
|
||||
@@ -106,12 +96,6 @@ class WrenchTransactions extends BaseController
|
||||
$out = $local_out;
|
||||
}
|
||||
|
||||
// $this->doCacheStep($in, $out);
|
||||
// return json_encode( ( new \App\Models\ResultFormatter() )->processOutJson($in, $out));
|
||||
// $result_response = ( new \App\Models\ResultFormatter() )->processOutJson($in, $out);
|
||||
// return $this->response->setJson($result_response);
|
||||
//return $this->respond( $this->summaryReturnData($in,$out), 200);
|
||||
//return $this->respond( json_encode( $out ), 200);
|
||||
log_message('critical', "REACH HERE ***** wrenchboard_api-startcredit".serialize($out) );
|
||||
return $this->respond( $this->summaryReturnData($in,$out), 200);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user