route.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /*
  3. * @Descripttion:
  4. * @version: 1.0.0
  5. * @Author: likang
  6. * @Date: 2022-06-09 10:11:32
  7. * @LastEditors: likang 1186820806@qq.com
  8. * @LastEditTime: 2023-06-14 17:17:04
  9. */
  10. // +----------------------------------------------------------------------
  11. // | CatchAdmin [Just Like ~ ]
  12. // +----------------------------------------------------------------------
  13. // | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
  14. // +----------------------------------------------------------------------
  15. // | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
  16. // +----------------------------------------------------------------------
  17. // | Author: JaguarJack [ njphper@gmail.com ]
  18. // +----------------------------------------------------------------------
  19. // you should use `$router`
  20. $router->group(function () use ($router) {
  21. // api路由
  22. $router->get('api/getUserList', '\catchAdmin\api\controller\Api@getUserList');
  23. });
  24. //报警上传
  25. $router->post('api/report', '\catchAdmin\api\controller\Api@report');
  26. $router->get('api/deleteHistory', '\catchAdmin\api\controller\Api@deleteHistory');
  27. $router->get('api/test', '\catchAdmin\api\controller\Api@test');
  28. //推送数据
  29. $router->get('api/redis', '\catchAdmin\api\controller\Api@redis_to_mysql');
  30. $router->get('api/redis2', '\catchAdmin\api\controller\Api@redis_to_mysql2');
  31. $router->get('api/assetRedis', '\catchAdmin\api\controller\Api@asset_redis');
  32. $router->get('api/clear_redis', '\catchAdmin\api\controller\Api@clear_redis');
  33. //远程推送数据
  34. $router->get('api/remote_push', '\catchAdmin\api\controller\Api@remotePush');
  35. //打印日志
  36. $router->get('api/temporary_label_log', '\catchAdmin\api\controller\Api@temporary_label_log');
  37. $router->get('api/redis_parea', '\catchAdmin\api\controller\Api@redis_to_mysql_parea');
  38. $router->get('api/redis_indoor', '\catchAdmin\api\controller\Api@redis_to_mysql_indoor');
  39. //更新软件版本测试
  40. //$router->get('api/detectionVersion', '\catchAdmin\api\controller\Api@detectionVersion');
  41. $router->get('api/redis_parea', '\catchAdmin\api\controller\Api@redis_to_mysql_parea');
  42. $router->get('sql/lister', '\catchAdmin\api\controller\sqlLister@lister');
  43. $router->get('api/scanpic', '\catchAdmin\api\controller\Api@testShellexec');