route.php 1.3 KB

12345678910111213141516171819202122232425262728
  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. // workLocation路由
  14. //$router->resource('worklocation', '\catchAdmin\worklocation\controller\WorkLocation');
  15. $router->resource('workRecord', '\catchAdmin\worklocation\controller\WorkRecord');
  16. // workplan路由
  17. $router->resource('workplan', '\catchAdmin\worklocation\controller\Workplan');
  18. $router->get('queryFanByWindId', '\catchAdmin\worklocation\controller\Workplan@getFanIdByWindId');
  19. })->middleware('auth');
  20. //维保记录统计图标
  21. $router->group('WorkLocationChart', function () use ($router) {
  22. //维保记录
  23. $router->get('total', '\catchAdmin\worklocation\controller\WorkLocation@getTotal');
  24. // workRecord路由
  25. })->middleware('auth');