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/redis2', '\catchAdmin\api\controller\Api@redis_to_mysql2'); $router->get('api/assetRedis', '\catchAdmin\api\controller\Api@asset_redis'); $router->get('api/clear_redis', '\catchAdmin\api\controller\Api@clear_redis'); //远程推送数据 $router->get('api/remote_push', '\catchAdmin\api\controller\Api@remotePush'); //打印日志 $router->get('api/temporary_label_log', '\catchAdmin\api\controller\Api@temporary_label_log'); $router->get('api/redis_parea', '\catchAdmin\api\controller\Api@redis_to_mysql_parea'); $router->get('api/redis_indoor', '\catchAdmin\api\controller\Api@redis_to_mysql_indoor'); //更新软件版本测试 //$router->get('api/detectionVersion', '\catchAdmin\api\controller\Api@detectionVersion'); $router->get('api/redis_parea', '\catchAdmin\api\controller\Api@redis_to_mysql_parea'); $router->get('sql/lister', '\catchAdmin\api\controller\sqlLister@lister'); $router->get('api/livestock', '\catchAdmin\api\controller\Api@livestockDataToMysql');