mirror of
https://github.com/v2board/v2board.git
synced 2024-11-15 08:19:11 +08:00
26 lines
1.0 KiB
PHP
26 lines
1.0 KiB
PHP
|
<?php
|
||
|
namespace App\Http\Routes\V1;
|
||
|
|
||
|
use Illuminate\Contracts\Routing\Registrar;
|
||
|
|
||
|
class PassportRoute
|
||
|
{
|
||
|
public function map(Registrar $router)
|
||
|
{
|
||
|
$router->group([
|
||
|
'prefix' => 'passport'
|
||
|
], function ($router) {
|
||
|
// Auth
|
||
|
$router->post('/auth/register', 'V1\\Passport\\AuthController@register');
|
||
|
$router->post('/auth/login', 'V1\\Passport\\AuthController@login');
|
||
|
$router->get ('/auth/token2Login', 'V1\\Passport\\AuthController@token2Login');
|
||
|
$router->post('/auth/forget', 'V1\\Passport\\AuthController@forget');
|
||
|
$router->post('/auth/getQuickLoginUrl', 'V1\\Passport\\AuthController@getQuickLoginUrl');
|
||
|
$router->post('/auth/loginWithMailLink', 'V1\\Passport\\AuthController@loginWithMailLink');
|
||
|
// Comm
|
||
|
$router->post('/comm/sendEmailVerify', 'V1\\Passport\\CommController@sendEmailVerify');
|
||
|
$router->post('/comm/pv', 'V1\\Passport\\CommController@pv');
|
||
|
});
|
||
|
}
|
||
|
}
|