route.php 1.8 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CatchAdmin [Just Like ~ ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
  8. // +----------------------------------------------------------------------
  9. // | Author: JaguarJack [ njphper@gmail.com ]
  10. // +----------------------------------------------------------------------
  11. // you should use `$router`
  12. $router->group(function () use ($router){
  13. // hydraulic路由
  14. $router->resource('hydraulic', '\catchAdmin\hydraulic\controller\Hydraulic');
  15. // deviceMold路由
  16. $router->resource('deviceMold', '\catchAdmin\hydraulic\controller\DeviceMold');
  17. $router->get('get_device_mold', '\catchAdmin\hydraulic\controller\DeviceMold@getDeviceMold');
  18. // wrench路由
  19. $router->resource('wrench', '\catchAdmin\hydraulic\controller\Wrench');
  20. //获取维保记录映射
  21. $router->get('get_mainten_option', '\catchAdmin\hydraulic\controller\Maintenance@getMaintenOption');
  22. $router->resource('maintenance_mapper', '\catchAdmin\hydraulic\controller\Maintenance');
  23. // 扳手校验路由
  24. $router->resource('wrenchCheckRecord', '\catchAdmin\hydraulic\controller\WrenchCheckRecord');
  25. $router->get('wrenchCheckRecordData', '\catchAdmin\hydraulic\controller\WrenchCheckRecord@decordDataList');
  26. // 液压设备路由
  27. $router->resource('hydEquipment', '\catchAdmin\hydraulic\controller\HydEquipment');
  28. //获取所有设备状态字典
  29. $router->get('getHydEquipmentType', '\catchAdmin\hydraulic\controller\HydEquipment@getHydEquipmentType');
  30. })->middleware('auth');