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');
|
||||
|
||||
Reference in New Issue
Block a user