123456789101112131415161718192021222324252627282930 |
- <?php
- /*
- * @Descripttion:
- * @version: 1.0.0
- * @Author: likang
- * @Date: 2022-06-09 10:11:32
- * @LastEditors: likang
- * @LastEditTime: 2022-07-11 17:23:27
- */
- // +----------------------------------------------------------------------
- // | CatchAdmin [Just Like ~ ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
- // +----------------------------------------------------------------------
- // | Author: JaguarJack [ njphper@gmail.com ]
- // +----------------------------------------------------------------------
- // you should use `$router`
- $router->group(function () use ($router) {
- // api路由
- $router->get('api/getUserList', '\catchAdmin\api\controller\Api@getUserList');
- });
- $router->get('api/getUsers', '\catchAdmin\api\controller\Api@getUserList');
- //下发数据
- $router->get('tool/Issued', '\catchAdmin\api\controller\Tool@Issued');
- //下发之后上传的信息
- $router->get('tool/receive', '\catchAdmin\api\controller\Tool@receive');
|