v2board/app/Http/Routes/PassportRoute.php

29 lines
1.2 KiB
PHP
Raw Normal View History

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-13 13:44:58 +08:00
$router->post('/auth/forget', 'Passport\\AuthController@forget');
2020-08-13 21:36:59 +08:00
$router->post('/auth/getTempToken', 'Passport\\AuthController@getTempToken');
2020-10-20 02:09:32 +08:00
$router->post('/auth/getQuickLoginUrl', 'Passport\\AuthController@getQuickLoginUrl');
2022-06-27 01:47:18 +08:00
$router->post('/auth/loginWithMailLink', 'Passport\\AuthController@loginWithMailLink');
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-17 13:41:19 +08:00
$router->post('/comm/pv', 'Passport\\CommController@pv');
2020-02-01 20:51:45 +08:00
});
}
}