core.php 553 B

123456789101112131415
  1. <?php
  2. // Copyright 2019 Hackware SpA <human@hackware.cl>
  3. // "Hackware Web Services Core" is released under the MIT License terms.
  4. app('router')->group(
  5. ['namespace' => 'Hawese\Core\Http\Controllers'],
  6. function ($router) {
  7. $router->get('/', 'HomeController@index');
  8. $router->get('/auth/whoami', 'AuthController@whoami');
  9. $router->post('/auth/login', 'AuthController@login');
  10. $router->post('/auth/logout', 'AuthController@logout');
  11. $router->post('/auth/email-token', 'AuthController@emailToken');
  12. }
  13. );