@include('home.layout.js')
<script>
ROOT.URL_INDEX = "{{ route('chat-index') }}"
require(['lib/login'])
</script>
/ 登录页面
Route::any('login', 'OAuthController@login')->name('chat-login');
Route::get('/', function (){
return redirect()->route('chat-index');
});
// oauth登录
Route::group(['prefix' => 'oauth', 'namespace' => 'Home'], function (){
Route::get('github', 'OAuthController@github');
Route::get('github/login', 'OAuthController@githubLogin');
Route::any('wechat', 'OAuthController@wechat');
Route::any('wechat-qrcode', 'OAuthController@wechatQrcode')->name('wechat-qrcode');
Route::any('wechat-login-check', 'OAuthController@loginCheck')->name('wechat-login-check');
});