From 5b899dbd3047d3d39a0311331a19b9062b8f75fe Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 6 Dec 2023 12:00:01 -0500 Subject: [PATCH] cache contacts --- www-api/app/Config/Routes.php | 2 ++ www-api/app/Controllers/BaseController.php | 1 + www-api/app/Controllers/WrenchApi.php | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/www-api/app/Config/Routes.php b/www-api/app/Config/Routes.php index 952a97bc..6ab5ddb5 100644 --- a/www-api/app/Config/Routes.php +++ b/www-api/app/Config/Routes.php @@ -85,6 +85,8 @@ $routes->post('/en/wrench/api/v1/pendingjob', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/paymenthx', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/purchasehx', 'WrenchApi::apigate'); +$routes->post('/en/wrench/api/v1/cachecontacts', 'WrenchApi::apigate'); + $routes->post('/en/wrench/api/v1/stepresetpass', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/starttopup', 'WrenchApi::apigate'); diff --git a/www-api/app/Controllers/BaseController.php b/www-api/app/Controllers/BaseController.php index 7a476d79..daebad4a 100644 --- a/www-api/app/Controllers/BaseController.php +++ b/www-api/app/Controllers/BaseController.php @@ -152,6 +152,7 @@ abstract class BaseController extends Controller 'account' => ['POST'], 'message' => ['POST'], 'jobmessage' => ['POST'], + 'cachecontacts'=> ['POST'], 'pendingjob' => ['POST'], 'paymenthx' => ['POST'], 'purchasehx' => ['POST'], diff --git a/www-api/app/Controllers/WrenchApi.php b/www-api/app/Controllers/WrenchApi.php index 2def18a5..0a9c51b9 100644 --- a/www-api/app/Controllers/WrenchApi.php +++ b/www-api/app/Controllers/WrenchApi.php @@ -19,6 +19,10 @@ class WrenchApi extends BaseController } private function prepareEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){ switch ($endpoint) { + case 'cachecontacts': + log_message('critical', "************************ cachecontacts 0001 ".serialize($in)); + + break; case 'myfiles': $in["action"] = WRENCHBOARD_MYFILES_LIST; break;