route.php 1.5 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
  8. * @LastEditTime: 2022-07-21 19:06:52
  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/UploadWorkRecordMA', '\catchAdmin\api\controller\Api@UploadWorkRecordMA');
  26. //上传维护模式记录
  27. $router->post('api/UploadWorkRecordFA', '\catchAdmin\api\controller\Api@UploadWorkRecordFA');
  28. //下发数据
  29. $router->post('tool/Issued', '\catchAdmin\api\controller\Tool@Issued');
  30. //下发之后上传的信息
  31. $router->post('tool/receive', '\catchAdmin\api\controller\Tool@receive');
  32. //报警上传
  33. $router->post('api/alarm', '\catchAdmin\api\controller\Api@alarm');