#tradewind:add wechat auth

This commit is contained in:
2021-06-11 17:19:09 +08:00
parent 5f850e288d
commit 4366c4a2ef
4 changed files with 39 additions and 6 deletions

View File

@ -1,6 +1,7 @@
<?php
use App\Http\Controllers\Api\TestController;
use App\Http\Controllers\Api\WechatAuthController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
@ -21,5 +22,9 @@ Route::middleware('auth:api')->get('/user', function (Request $request) {
Route::namespace('Api')->prefix('v1')->group(function () {
Route::any('/test', [TestController::class, 'index'])->name('test.index');
Route::prefix('wechat')->group(function () {
Route::get('/auth', [WechatAuthController::class, 'checkSign'])->name('wechat.auth.checkSign');
});
});