get('/', function () use ($router) { // return $router->app->version(); //}); $router->post('/logout',['uses'=>'AccessTokenController@logout','middleware' => 'auth:api']); /** * Routes for MobileBackend */ $router->group(['prefix' => '/mobilebackend/interacted' , 'middleware' => 'auth:api'], function () use ($router){ $router->post('LoginAction', 'MobileBackendController@action'); $router->post('BalanceAction', 'MobileBackendController@action'); $router->post('ConfigAction', 'MobileBackendController@action'); $router->post('DemandeAction', 'MobileBackendController@action'); $router->post('MembersAction', 'MobileBackendController@action'); $router->post('LocationAction', 'MobileBackendController@action'); $router->post('NetworkAction', 'MobileBackendController@action'); $router->post('WalletAction', 'MobileBackendController@action'); }); /** * Routes for MobileBackendTest */ $router->group(['prefix' => '/mobilebackendtest/interacted'], function () use ($router){ $router->post('LoginAction', 'MobileBackendTestController@action'); $router->post('MembersAction', 'MobileBackendTestController@action'); $router->group(['middleware' => 'auth:api'], function () use ($router){ $router->post('BalanceAction', 'MobileBackendTestController@action'); $router->post('ConfigAction', 'MobileBackendTestController@action'); $router->post('DemandeAction', 'MobileBackendTestController@action'); $router->post('LocationAction', 'MobileBackendTestController@action'); $router->post('NetworkAction', 'MobileBackendTestController@action'); $router->post('WalletAction', 'MobileBackendTestController@action'); }); }); /** * Routes for Wallet Service */ $router->group(['prefix' => '/'.env('WALLET_SERVICE_NAME') ,'middleware' => 'auth:api'], function () use ($router){ // Helper routes $router->get('countries','WalletServiceController@get'); $router->get('countries/{dial_code}','WalletServiceController@get'); $router->get('paying_networks/{id_country}','WalletServiceController@get'); // Transactions routes $router->group(['prefix' => '/transactions'] , function () use ($router){ $router->post('','WalletServiceController@post'); $router->get('{id_wallet}','WalletServiceController@get'); $router->post('commission','WalletServiceController@post'); $router->delete('{id_transaction}','WalletServiceController@delete'); // Transactions wallet ilink $router->group(['prefix' => '/ilink'] , function () use ($router){ $router->post('','WalletServiceController@post'); $router->post('commission','WalletServiceController@post'); $router->get('user/{id_wallet_user}','WalletServiceController@get'); $router->get('agent/{id_wallet_agent}','WalletServiceController@get'); }); }); // Credits routes $router->group(['prefix' => '/credits'] , function () use ($router){ $router->put('treatDemand/{id_demand}','WalletServiceController@put'); $router->put('cancelDemand/{id_demand}','WalletServiceController@put'); }); $router->put('/virement/{id_wallet}','WalletServiceController@put'); // Wallets routes $router->group(['prefix' => '/wallets'] , function () use ($router){ $router->get('{id_agent}/activated', 'WalletServiceController@get'); $router->get('{id_wallet}', 'WalletServiceController@get'); $router->post('', 'WalletServiceController@post'); // Wallets users iLink $router->group(['prefix' => '/users'] , function () use ($router){ $router->get('{id_user}', 'WalletServiceController@get'); }); }); // Idendification routes $router->group(['prefix' => '/identifications'] , function () use ($router){ $router->post('','WalletServiceController@post'); $router->post('{id_identification}','WalletServiceController@postWithFiles'); $router->get('{user_phone}','WalletServiceController@get'); $router->get('verify/{user_phone}','WalletServiceController@get'); }); });