From a9a6717720d18e1efc28c041e581da0a4ea8bac8 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 27 Feb 2024 09:21:54 -0500 Subject: [PATCH] comment unused --- www-api/app/Controllers/WrenchResources.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/www-api/app/Controllers/WrenchResources.php b/www-api/app/Controllers/WrenchResources.php index 235ae031..98912c45 100644 --- a/www-api/app/Controllers/WrenchResources.php +++ b/www-api/app/Controllers/WrenchResources.php @@ -115,15 +115,15 @@ class WrenchResources extends BaseController $endpoints = $this->endPointList(); $out = array(); $res1 = []; - if (array_key_exists($endpoint, $endpoints)) { - } else { - http_response_code(404); - // tell the user product does not exist - echo json_encode([ - 'message' => 'Endpoint not found.', - 'URI' => $uri, - ]); - } +// if (array_key_exists($endpoint, $endpoints)) { +// } else { +// http_response_code(404); +// // tell the user product does not exist +// echo json_encode([ +// 'message' => 'Endpoint not found.', +// 'URI' => $uri, +// ]); +// } $current_env = $this->getSiteConfigurations("system.live"); $primary_image_sever = $this->getSiteConfigurations("system.primary_image_sever"); @@ -156,6 +156,7 @@ class WrenchResources extends BaseController try { $micro_service_net1 = $this->getSiteConfigurations("system.micro_service_net1"); //"10.10.10.120"; $local_url = "http://".$micro_service_net1.":3034/famresourcecat"; + log_message('critical', "WrenchResources Path GATE 00666 -> ".$local_url); return $this->APIcall('GET', $local_url, $in); } catch (Exception $e) { log_message('critical', "WrenchResources Path GATE 007 - ".$e->getMessage());