get('/', function () use ($router) { // return $router->app->version(); //}); // Transactions routes $router->group(['prefix' => '/transactions'] , function () use ($router){ $router->post('','TransactionController@add'); $router->get('{id_wallet}','TransactionController@lastTransactions'); }); // Credits routes $router->group(['prefix' => '/credits'] , function () use ($router){ $router->put('treatDemand/{id_demand}','CreditController@treatDemand'); }); $router->post('/virement','CommissionController@virement'); // Wallets routes $router->group(['prefix' => '/wallets'] , function () use ($router){ $router->get('{id_agent}/activated', 'WalletController@activated'); $router->get('{id_wallet}', 'WalletController@show'); $router->post('', 'WalletController@create'); });