2020-06-07 14:22:41 +08:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @filename route.php
|
|
|
|
* @date 2020/6/7
|
|
|
|
* @project https://github.com/yanwenwu/catch-admin
|
|
|
|
* @document http://doc.catchadmin.com
|
|
|
|
* @author JaguarJack <njphper@gmail.com>
|
|
|
|
* @copyright By CatchAdmin
|
|
|
|
* @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt
|
|
|
|
*/
|
2020-06-19 19:29:21 +08:00
|
|
|
|
|
|
|
$router->group('wechat', function () use ($router){
|
|
|
|
// 公众号粉丝
|
|
|
|
$router->group('official/users', function () use ($router){
|
2020-06-21 18:04:30 +08:00
|
|
|
$router->get('', '\catchAdmin\wechat\controller\Users@index');
|
2020-06-21 14:41:22 +08:00
|
|
|
$router->put('remark/<id>/<remark>', '\catchAdmin\wechat\controller\Users@remark');
|
|
|
|
$router->put('block/<id>', '\catchAdmin\wechat\controller\Users@block');
|
2020-06-22 07:55:16 +08:00
|
|
|
$router->put('tag/<id>', '\catchAdmin\wechat\controller\Users@tag');
|
2020-06-21 18:04:30 +08:00
|
|
|
$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');
|
2020-06-19 19:29:21 +08:00
|
|
|
});
|
2020-06-26 16:27:20 +08:00
|
|
|
// 微信菜单
|
|
|
|
$router->group('official/menus', function () use ($router){
|
|
|
|
$router->resource('', '\catchAdmin\wechat\controller\Menus');
|
|
|
|
$router->post('sync', '\catchAdmin\wechat\controller\Menus@sync');
|
|
|
|
});
|
2020-06-24 09:10:24 +08:00
|
|
|
})->middleware('auth');
|
2020-06-21 18:04:30 +08:00
|
|
|
|
2020-06-26 22:08:27 +08:00
|
|
|
// 消息
|
|
|
|
$router->rule('wechat', '\catchAdmin\wechat\controller\Message@done', 'GET|POST');
|
|
|
|
|