From 246e3fdd63a1fada6800b78a912411179759b20f Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 8 Mar 2024 12:29:02 -0500 Subject: [PATCH] remove end point test --- www-api/app/Controllers/WrenchWallet.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/www-api/app/Controllers/WrenchWallet.php b/www-api/app/Controllers/WrenchWallet.php index 1ec37f65..14fa3f7a 100644 --- a/www-api/app/Controllers/WrenchWallet.php +++ b/www-api/app/Controllers/WrenchWallet.php @@ -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):[]; }