route.php 1.2 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * @Descripttion:
  4. * @version: 1.0.0
  5. * @Author: likang
  6. * @Date: 2022-06-09 10:11:32
  7. * @LastEditors: likang
  8. * @LastEditTime: 2022-07-11 17:23:27
  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. $router->get('api/getUsers', '\catchAdmin\api\controller\Api@getUserList');
  25. //下发数据
  26. $router->get('tool/Issued', '\catchAdmin\api\controller\Tool@Issued');
  27. //下发之后上传的信息
  28. $router->get('tool/receive', '\catchAdmin\api\controller\Tool@receive');