remove end point test

This commit is contained in:
CHIEFSOFT\ameye
2024-03-08 12:29:02 -05:00
parent f04250affb
commit 246e3fdd63
+7 -6
View File
@@ -38,7 +38,7 @@ class WrenchWallet extends BaseController
log_message('critical', " WrenchJobs()-> OPTIONS DIE*****" );
die();
}
log_message('critical', "WrenchWallet Path GATE 003");
//$request = service('request');
// what is the endpoint
$uri = urldecode(current_url(true));
@@ -47,17 +47,17 @@ class WrenchWallet extends BaseController
if ($pos > 5) {
$uri = substr($uri, 0, $pos);
}
log_message('critical', "API-GATE URI -> ".$uri );
log_message('critical', "API-WrenchWallet URI -> ".$uri );
$pieces = explode('/', $uri);
$psc = count($pieces);
$endpoint = $psc > 0 ? $pieces[$psc - 1] : '';
log_message('critical', "Enpoint-> ".$endpoint );
log_message('critical', "Endpoint-> ".$endpoint );
$endpoints = $this->endPointList();
$out = array();
$res1 = [];
if (array_key_exists($endpoint, $endpoints)) {
/* if (array_key_exists($endpoint, $endpoints)) {
} else {
http_response_code(404);
// tell the user product does not exist
@@ -66,7 +66,8 @@ class WrenchWallet extends BaseController
'URI' => $uri,
]);
}
*/
$current_env = $this->getSiteConfigurations("system.live");
$primary_image_sever = $this->getSiteConfigurations("system.primary_image_sever");
$server_tag = $this->getSiteConfigurations("system.server_tag");
@@ -77,7 +78,7 @@ class WrenchWallet extends BaseController
$raw_array = json_decode($raw_json, true);
$local_out =[];
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
log_message('critical', "Enpoint LOC2 HERE -> ".$endpoint );
log_message('critical', "Endpoint LOC2 HERE -> ".$endpoint );
$get_param = $_GET['reqData'] ?? null;
$raw_array = ($get_param!=null) ? json_decode($get_param, true):[];
}