* @copyright By CatchAdmin * @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt */ $router->group('wechat', function () use ($router){ // 公众号粉丝 $router->group('official/users', function () use ($router){ $router->get('', '\catchAdmin\wechat\controller\Users@index'); $router->put('remark//', '\catchAdmin\wechat\controller\Users@remark'); $router->put('block/', '\catchAdmin\wechat\controller\Users@block'); $router->put('tag/', '\catchAdmin\wechat\controller\Users@tag'); $router->get('sync', '\catchAdmin\wechat\controller\Users@sync'); }); // 粉丝标签 $router->group('official/tags', function () use ($router){ $router->resource('', '\catchAdmin\wechat\controller\Tags'); $router->get('sync', '\catchAdmin\wechat\controller\Tags@sync'); }); // 微信菜单 $router->group('official/menus', function () use ($router){ $router->resource('', '\catchAdmin\wechat\controller\Menus'); $router->post('sync', '\catchAdmin\wechat\controller\Menus@sync'); }); })->middleware('auth'); // 消息 $router->rule('wechat', '\catchAdmin\wechat\controller\Message@done', 'GET|POST');