mirror of
https://github.com/v2board/v2board.git
synced 2025-02-11 16:00:27 +08:00
split router
This commit is contained in:
parent
3f6799aa4b
commit
d744fba683
@ -11,14 +11,14 @@ class PassportRoute
|
|||||||
'prefix' => 'passport'
|
'prefix' => 'passport'
|
||||||
], function ($router) {
|
], function ($router) {
|
||||||
// Auth
|
// Auth
|
||||||
$router->post('/auth/register', 'Passport\\AuthController@register');
|
$router->post('auth/register', 'Passport\\AuthController@register');
|
||||||
$router->post('/auth/login', 'Passport\\AuthController@login');
|
$router->post('auth/login', 'Passport\\AuthController@login');
|
||||||
$router->get('/auth/token2Login', 'Passport\\AuthController@token2Login');
|
$router->get('auth/token2Login', 'Passport\\AuthController@token2Login');
|
||||||
$router->get('/auth/check', 'Passport\\AuthController@check');
|
$router->get('auth/check', 'Passport\\AuthController@check');
|
||||||
$router->post('/auth/forget', 'Passport\\AuthController@index');
|
$router->post('auth/forget', 'Passport\\AuthController@index');
|
||||||
// Comm
|
// Comm
|
||||||
$router->get('/comm/config', 'Passport\\CommController@config');
|
$router->get('comm/config', 'Passport\\CommController@config');
|
||||||
$router->post('/comm/sendEmailVerify', 'Passport\\CommController@sendEmailVerify');
|
$router->post('comm/sendEmailVerify', 'Passport\\CommController@sendEmailVerify');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user