1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- /*
- * @Descripttion:
- * @version: 1.0.0
- * @Author: likang
- * @Date: 2022-06-09 10:11:32
- * @LastEditors: likang 1186820806@qq.com
- * @LastEditTime: 2023-04-19 11:01:00
- */
- // +----------------------------------------------------------------------
- // | 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->post('api/report', '\catchAdmin\api\controller\Api@report');
- $router->get('api/deleteHistory', '\catchAdmin\api\controller\Api@deleteHistory');
- $router->get('api/test', '\catchAdmin\api\controller\Api@test');
- $router->get('api/redis', '\catchAdmin\api\controller\Api@redis_to_mysql');
- //更新软件版本测试
- //$router->get('api/detectionVersion', '\catchAdmin\api\controller\Api@detectionVersion');
|