Skip to content

Commit

Permalink
fix(*): 修复功能错误提交远端,导致开源库功能丢失问题
Browse files Browse the repository at this point in the history
  • Loading branch information
medz committed Dec 4, 2018
1 parent 7ce5496 commit cf83719
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/slimkit-plus-socialite/routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
// Socialite.
// @Route /api/v2/socialite
$api->group(['prefix' => 'socialite'], function (RouteRegisterContract $api) {

$api->get('/getAccess/{code}', API\WechatController::class.'@getAccess')->name('wechat://mp:access');
$api->post('/getWechatUser', API\WechatController::class.'@getUser')->name('wechat://mp:userInfo');
$api->post('/getOriginUrl', API\WechatController::class.'@getOauthUrl')->name('wechat://mp:redirectUrl');
$api->post('/wxconfig', API\WechatController::class.'@calculateConfig')->name('wechat://mp:share');
// Check bind and get user auth token.
// @POST /api/v2/socialite/:provider
$api->post('/{provider}', API\SocialiteController::class.'@checkAuth');
Expand Down

0 comments on commit cf83719

Please sign in to comment.