get('/', function () use ($router) { // return $router->app->version(); //}); /** * Routes for MobileBackend */ $router->group(['prefix' => '/mobilebackend/interacted' , 'middleware' => 'clients.credentials'], 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 Wallet Service */ $router->group(['prefix' => '/'.env('WALLET_SERVICE_NAME') ,'middleware' => 'clients.credentials'], function () use ($router){ // Wallets routes $router->group(['prefix' => '/wallets'] , function () use ($router){ $router->get('{id_agent}/activated', 'WalletController@get'); $router->get('{id_wallet}', 'WalletController@get'); }); });