123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- $router->group('wechat', function () use ($router){
-
- $router->group('official/users', function () use ($router){
- $router->get('', '\catchAdmin\wechat\controller\Users@index');
- $router->put('remark/<id>/<remark>', '\catchAdmin\wechat\controller\Users@remark');
- $router->put('block/<id>', '\catchAdmin\wechat\controller\Users@block');
- $router->put('tag/<id>', '\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');
- });
-
- $router->group('official/graphic', function () use ($router){
- $router->resource('', '\catchAdmin\wechat\controller\Graphic');
- });
-
- $router->group('official/reply', function () use ($router){
- $router->resource('', '\catchAdmin\wechat\controller\Reply');
- $router->put('enable/<id>', '\catchAdmin\wechat\controller\Reply@disOrEnable');
- });
-
- $router->group('official/upload', function () use ($router){
- $router->post('/image', '\catchAdmin\wechat\controller\Upload@image');
- $router->post('/file', '\catchAdmin\wechat\controller\Upload@file');
- });
-
- $router->rule('wechat', '\catchAdmin\wechat\controller\Message@done', 'GET|POST');
-
- $router->resource('banner', '\catchAdmin\wechat\controller\Banner');
-
- $router->resource('notice', '\catchAdmin\wechat\controller\Notice');
- })->middleware('auth');
|