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