compatibility old client

This commit is contained in:
Tokumeikoi 2020-02-15 23:04:50 +08:00
parent 9d9866689d
commit 0a58930619
2 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@ class AppController extends Controller
CONST SOCKS_PORT = 10010;
CONST HTTP_PORT = 10011;
// TODO: 1.1.1 abolish
public function data(Request $request)
{
$user = $request->user;

View File

@ -10,6 +10,8 @@ class PassportRoute
$router->group([
'prefix' => 'passport'
], function ($router) {
// TODO: 1.1.1 abolish
$router->post('/login', 'Passport\\AuthController@login');
// Auth
$router->post('/auth/register', 'Passport\\AuthController@register');
$router->post('/auth/login', 'Passport\\AuthController@login');