PassportRoute.php 982 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace App\Http\Routes;
  3. use Illuminate\Contracts\Routing\Registrar;
  4. class PassportRoute
  5. {
  6. public function map(Registrar $router)
  7. {
  8. $router->group([
  9. 'prefix' => 'passport'
  10. ], function ($router) {
  11. // TODO: 1.1.1 abolish
  12. $router->post('/login', 'Passport\\AuthController@login');
  13. // Auth
  14. $router->post('/auth/register', 'Passport\\AuthController@register');
  15. $router->post('/auth/login', 'Passport\\AuthController@login');
  16. $router->get ('/auth/token2Login', 'Passport\\AuthController@token2Login');
  17. $router->get ('/auth/check', 'Passport\\AuthController@check');
  18. $router->post('/auth/forget', 'Passport\\AuthController@forget');
  19. // Comm
  20. $router->get ('/comm/config', 'Passport\\CommController@config');
  21. $router->post('/comm/sendEmailVerify', 'Passport\\CommController@sendEmailVerify');
  22. });
  23. }
  24. }