Skip to content

Commit

Permalink
feat: 更新登录逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
mouyong committed Mar 19, 2024
1 parent 81d112b commit 4de3b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WechatLogin/routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

// 公众号登录
Route::post('wechat-login/official-login/get-auth-url', [ApiController\WechatController::class, 'wechatAuthUrl'])->withoutMiddleware(['auth:sanctum']);
Route::get('wechat-login/official-login/callback', [ApiController\WechatController::class, 'wechatAuthCallback'])->name('wechat-official-login.callback')->withoutMiddleware('auth:sanctum');
Route::get('wechat-login/official-login/callback', [ApiController\WechatController::class, 'wechatAuthCallback'])->withoutMiddleware(['auth:sanctum'])->name('wechat-official-login.callback');
Route::post('wechat-login/official-login/login-by-code', [ApiController\WechatController::class, 'wechatLoginByCode'])->withoutMiddleware(['auth:sanctum']);

// 小程序登录
Expand Down

0 comments on commit 4de3b67

Please sign in to comment.