From e01b1fda1467f1d803cb1cfb31e6c8651be4263a Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 26 Nov 2023 18:24:10 -0500 Subject: [PATCH] $endpoint --- www-api/app/Controllers/Bko.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www-api/app/Controllers/Bko.php b/www-api/app/Controllers/Bko.php index 10de2676..a5d9a180 100644 --- a/www-api/app/Controllers/Bko.php +++ b/www-api/app/Controllers/Bko.php @@ -2,6 +2,7 @@ namespace App\Controllers; +use App\Models\ResultFormatter; use CodeIgniter\API\ResponseTrait; class Bko extends BaseController @@ -41,6 +42,8 @@ class Bko extends BaseController $endpoint = strtolower(str_replace('/svs/bko/', '', strtok($_SERVER['REQUEST_URI'], '?'))); + log_message('critical', "BkoApi Path GATE 001 endpoint = $endpoint"); + $id = 0; // update, get & delete actions require ID if (substr($endpoint, 0, 19) == 'gettransportrequest' || substr($endpoint, 0, 13) == 'updateprofile') { $endpoint = strtok($endpoint, '/'); @@ -94,8 +97,7 @@ class Bko extends BaseController header("HTTP/1.1 200 OK"); header("Status: 200 OK"); -//$out = array_merge($in, $out); // DEBUG - echo json_encode(( new \App\Models\ResultFormatter() )->processOutJson($in, $out)); + echo json_encode(( new ResultFormatter() )->processOutJson($in, $out)); exit(); } } \ No newline at end of file