2014-11-02 10:02:20 -06:00
|
|
|
<?php
|
|
|
|
|
|
2019-12-20 15:10:23 -06:00
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
2016-03-23 17:04:42 -05:00
|
|
|
Route::get('/', function () {
|
2025-06-25 16:12:51 +08:00
|
|
|
// return view('welcome');
|
|
|
|
|
return view('chat');
|
|
|
|
|
});
|
|
|
|
|
Route::get('/login', function () {
|
|
|
|
|
// return view('welcome');
|
|
|
|
|
return view('login');
|
2015-12-09 11:12:27 -06:00
|
|
|
});
|
2025-06-25 14:09:34 +08:00
|
|
|
Route::post('/b', function () {
|
|
|
|
|
$userId = request()->post('user_id');
|
|
|
|
|
$clientId = request()->post('client_id');
|
|
|
|
|
\App\Services\GatewayWorker\GatewayClientService::getInstance()->init()->bindUser($clientId, $userId);
|
|
|
|
|
return jok('绑定成功');
|
|
|
|
|
});
|