route.php 1.0 KB

123456789101112131415161718192021222324
  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. })->middleware('auth');
  16. //维保记录统计图标
  17. $router->group('WorkLocationChart', function () use ($router){
  18. //维保记录
  19. $router->get('total','\catchAdmin\worklocation\controller\WorkLocation@getTotal');
  20. })->middleware('auth');