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');