This commit is contained in:
CHIEFSOFT\ameye
2025-07-11 20:46:35 -04:00
parent 55b5508370
commit 7860e6de8c
3 changed files with 1 additions and 18 deletions
@@ -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);
}