wallet.php 941 B

1234567891011121314151617181920
  1. <?php
  2. // Copyright 2019 Hackware SpA <human@hackware.cl>
  3. // This file is part of "Hackware Web Services Wallet" and licensed under
  4. // the terms of the GNU Affero General Public License version 3, or (at your
  5. // option) a later version. You should have received a copy of this license
  6. // along with the software. If not, see <https://www.gnu.org/licenses/>.
  7. app('router')->group(
  8. ['namespace' => 'Hawese\Wallet\Http\Controllers'],
  9. function ($router) {
  10. $router->get('/wallets/{user_uid}', 'WalletController@show');
  11. $router->get('/wallets', 'WalletController@index');
  12. $router->post('/wallets', 'WalletController@store');
  13. $router->post('/transactions', 'TransactionController@store');
  14. $router->get('/transactions', 'TransactionController@index');
  15. $router->get('/currencies', 'CurrencyController@index');
  16. $router->get('/currencies/{idOrCode}', 'CurrencyController@show');
  17. }
  18. );