From c5fe12736a0c592b3120c5383983d375097863a8 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 25 Feb 2024 07:04:22 -0500 Subject: [PATCH] family banner routes --- www-api/app/Config/Routes.php | 3 ++- www-api/app/Controllers/WrenchBanners.php | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/www-api/app/Config/Routes.php b/www-api/app/Config/Routes.php index 2aa9a06b..75b920a5 100644 --- a/www-api/app/Config/Routes.php +++ b/www-api/app/Config/Routes.php @@ -118,7 +118,8 @@ $routes->post('/en/wrench/api/v1/familylist', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/familywallet', 'WrenchApi::apigate'); -$routes->post('/en/wrench/api/v1/familybanners', 'WrenchApi::apigate'); +$routes->post('/en/wrench/api/v1/familybanners', 'WrenchBanners::apigate'); // class WrenchBanners WrenchApi + $routes->post('/en/wrench/api/v1/familyrewardhx', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/familytransferstart', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/familytransfer', 'WrenchApi::apigate'); diff --git a/www-api/app/Controllers/WrenchBanners.php b/www-api/app/Controllers/WrenchBanners.php index acea26fd..c255cf8a 100644 --- a/www-api/app/Controllers/WrenchBanners.php +++ b/www-api/app/Controllers/WrenchBanners.php @@ -91,14 +91,14 @@ class WrenchBanners extends BaseController } switch($endpoint) { - case 'getjobsdata': - $in["action"] = 'marketjobs'; //WRENCHBOARD_ACCOUNT_JOBLIST; + case 'familybanners': + $in["action"] = 'familybanners'; //WRENCHBOARD_ACCOUNT_JOBLIST; break; } if ( $call_backend == true && $in["action"] !='' ){ - $local_url = "http://10.10.10.120:3033/marketjobs"; + $local_url = "http://10.10.10.120:3032/familybanners"; $out = $this->APIcall('GET', $local_url, $in); } else