2020-02-01 20:51:45 +08:00
|
|
|
<?php
|
|
|
|
namespace App\Http\Routes;
|
|
|
|
|
|
|
|
use Illuminate\Contracts\Routing\Registrar;
|
|
|
|
|
|
|
|
class PassportRoute
|
|
|
|
{
|
|
|
|
public function map(Registrar $router)
|
|
|
|
{
|
|
|
|
$router->group([
|
|
|
|
'prefix' => 'passport'
|
|
|
|
], function ($router) {
|
|
|
|
// Auth
|
2020-02-01 20:58:36 +08:00
|
|
|
$router->post('/auth/register', 'Passport\\AuthController@register');
|
|
|
|
$router->post('/auth/login', 'Passport\\AuthController@login');
|
2020-02-01 21:54:08 +08:00
|
|
|
$router->get ('/auth/token2Login', 'Passport\\AuthController@token2Login');
|
|
|
|
$router->get ('/auth/check', 'Passport\\AuthController@check');
|
2020-02-01 20:58:36 +08:00
|
|
|
$router->post('/auth/forget', 'Passport\\AuthController@index');
|
2020-02-01 20:51:45 +08:00
|
|
|
// Comm
|
2020-02-01 21:54:08 +08:00
|
|
|
$router->get ('/comm/config', 'Passport\\CommController@config');
|
2020-02-01 20:58:36 +08:00
|
|
|
$router->post('/comm/sendEmailVerify', 'Passport\\CommController@sendEmailVerify');
|
2020-02-01 20:51:45 +08:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|