+ Add iLink agent depot transactions routes v1

This commit is contained in:
Djery-Tom 2020-06-19 14:49:40 +01:00
parent c62701caad
commit 9878189ee9
1 changed files with 9 additions and 2 deletions

View File

@ -54,6 +54,8 @@
* Routes for Wallet Service * Routes for Wallet Service
*/ */
$router->group(['prefix' => '/'.env('WALLET_SERVICE_NAME') ,'middleware' => 'auth:api'], function () use ($router){ $router->group(['prefix' => '/'.env('WALLET_SERVICE_NAME') ,'middleware' => 'auth:api'], function () use ($router){
// Helper routes
$router->get('countries','WalletServiceController@get');
// Transactions routes // Transactions routes
$router->group(['prefix' => '/transactions'] , function () use ($router){ $router->group(['prefix' => '/transactions'] , function () use ($router){
@ -61,6 +63,11 @@
$router->get('{id_wallet}','WalletServiceController@get'); $router->get('{id_wallet}','WalletServiceController@get');
$router->post('commission','WalletServiceController@post'); $router->post('commission','WalletServiceController@post');
$router->delete('{id_transaction}','WalletServiceController@delete'); $router->delete('{id_transaction}','WalletServiceController@delete');
// Transactions wallet ilink
$router->group(['prefix' => '/ilink'] , function () use ($router){
$router->post('','WalletServiceController@post');
});
}); });
// Credits routes // Credits routes
@ -87,7 +94,7 @@
$router->group(['prefix' => '/identifications'] , function () use ($router){ $router->group(['prefix' => '/identifications'] , function () use ($router){
$router->post('','WalletServiceController@post'); $router->post('','WalletServiceController@post');
$router->post('{id_identification}','WalletServiceController@post'); $router->post('{id_identification}','WalletServiceController@post');
$router->get('{user_code}','WalletServiceController@get'); $router->get('{id_user}','WalletServiceController@get');
$router->get('verify/{id_user}','WalletServiceController@get'); $router->get('verify/{user_phone}','WalletServiceController@get');
}); });
}); });