route.php 978 B

123456789101112131415161718192021
  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. // flange路由
  14. $router->resource('flange', '\catchAdmin\flange\controller\Flange');
  15. $router->get("getwindfan",'\catchAdmin\flange\controller\Flange@getWindFan');
  16. //扳手类型
  17. $router->get("wrenchtype",'\catchAdmin\flange\controller\Flange@chooseWrench');
  18. })->middleware('auth');