route.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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-04-19 11:01:00
  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. $router->get('api/redis', '\catchAdmin\api\controller\Api@redis_to_mysql');
  29. //更新软件版本测试
  30. //$router->get('api/detectionVersion', '\catchAdmin\api\controller\Api@detectionVersion');