22 lines
768 B
PHP
22 lines
768 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider and all of them will
|
|
| be assigned to the "web" middleware group. Make something great!
|
|
|
|
|
*/
|
|
|
|
Route::redirect('/', '/admin');
|
|
|
|
Route::group(['middleware' => [App\Http\Middleware\UserSocialite::class, 'easywechat.oauth:default,snsapi_base']], function () {
|
|
Route::get('oauth', [App\Http\Controllers\WechatController::class, 'oauth']);
|
|
Route::get('oauth/client', [App\Http\Controllers\WechatController::class, 'client']);
|
|
});
|