remove end point test
This commit is contained in:
@@ -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):[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user