try group routes
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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 : [];
|
||||
|
||||
Reference in New Issue
Block a user