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. // stuckPoint路由
  14. $router->resource('stuckPoint', '\catchAdmin\transport\controller\StuckPoint');
  15. $router->get('getStuckPointList', '\catchAdmin\transport\controller\StuckPoint@getAllList');
  16. // stuckSection路由
  17. $router->resource('stuckSection', '\catchAdmin\transport\controller\StuckSection');
  18. $router->put('stuckSection/switchRetrograde/<id>', '\catchAdmin\transport\controller\StuckSection@switchRetrograde');
  19. $router->put('stuckSection/switchOverSpeed/<id>', '\catchAdmin\transport\controller\StuckSection@switchOverSpeed');
  20. })->middleware('auth');