PassportRoute.php 990 B

12345678910111213141516171819202122232425
  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. // Auth
  12. $router->post('/auth/register', 'Passport\\AuthController@register');
  13. $router->post('/auth/login', 'Passport\\AuthController@login');
  14. $router->get ('/auth/token2Login', 'Passport\\AuthController@token2Login');
  15. $router->post('/auth/forget', 'Passport\\AuthController@forget');
  16. $router->post('/auth/getQuickLoginUrl', 'Passport\\AuthController@getQuickLoginUrl');
  17. $router->post('/auth/loginWithMailLink', 'Passport\\AuthController@loginWithMailLink');
  18. // Comm
  19. $router->post('/comm/sendEmailVerify', 'Passport\\CommController@sendEmailVerify');
  20. $router->post('/comm/pv', 'Passport\\CommController@pv');
  21. });
  22. }
  23. }