route.php 1.2 KB

1234567891011121314151617181920212223
  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. // maintenance路由
  21. $router->resource('maintenance', '\catchAdmin\hydraulic\controller\Maintenance');
  22. })->middleware('auth');