try group routes

This commit is contained in:
CHIEFSOFT\ameye
2024-10-27 12:34:09 -04:00
parent 49b3a19080
commit f0c4808bf8
2 changed files with 12 additions and 7 deletions
+12 -5
View File
@@ -104,12 +104,19 @@ $routes->post('/en/wrench/api/v1/familylist', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/getwallets', 'WrenchApi::apigate'); // to be retired
// WALLET FUNCTIONS
$routes->post('/en/wrench/api/v1/wallets', 'WrenchWallet::getWallet');
$routes->post('/en/wrench/api/v1/kidwallets', 'WrenchWallet::getKidWallet');
$routes->post('/en/wrench/api/v1/wallets/escrols', 'WrenchWallet::getEscrols');
$routes->post('/en/wrench/api/v1/wallets/card/request', 'WrenchWallet::requestVirtualCard');
//$routes->post('/en/wrench/api/v1/wallets', 'WrenchWallet::getWallet');
//$routes->post('/en/wrench/api/v1/kidwallets', 'WrenchWallet::getKidWallet');
//$routes->post('/en/wrench/api/v1/wallets/escrols', 'WrenchWallet::getEscrols');
//$routes->post('/en/wrench/api/v1/wallets/card/request', 'WrenchWallet::requestVirtualCard');
$routes->group('/en/wrench/api/v1/', static function ($routes) {
// $routes->get('users', 'Admin\Users::index');
//$routes->get('blog', 'Admin\Blog::index');
$routes->post('wallets', 'WrenchWallet::getWallet');
$routes->post('kidwallets', 'WrenchWallet::getKidWallet');
$routes->post('wallets/escrols', 'WrenchWallet::getEscrols');
$routes->post('wallets/card/request', 'WrenchWallet::requestVirtualCard');
});
$routes->post('/en/wrench/api/v1/familywallet/redeem', 'WrenchWallet::redeemOptions');
$routes->post('/en/wrench/api/v1/familywallet/redeem/options', 'WrenchWallet::redeemOptions');
-2
View File
@@ -110,8 +110,6 @@ class WrenchJobs extends BaseController
$out['result_list'] = $filter_job_list;
// Fileter result_list to wallet country
$endpoint = "WRENCH_JOB_INTEREST_COUNT";
$int_list = $this->getCache($endpoint)["result_list"];
$out["interest_list"] = ( isset($int_list) && is_array($int_list) ) ? $int_list : [];