route.php 1.5 KB

123456789101112131415161718192021222324252627282930
  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. // vehicle路由
  14. $router->resource('vehicle', '\catchAdmin\yunying\controller\Vehicle');
  15. // 导出车辆
  16. $router->post('export_vehicle', '\catchAdmin\yunying\controller\Vehicle@export_vehicle');
  17. // vehicle_photo路由
  18. $router->resource('vehicle_photo', '\catchAdmin\yunying\controller\VehiclePhoto');
  19. // stolen_vehicle路由
  20. $router->resource('stolen_vehicle', '\catchAdmin\yunying\controller\StolenVehicle');
  21. // vehicle_brand路由
  22. $router->resource('vehicle_brand', '\catchAdmin\yunying\controller\VehicleBrand');
  23. // vehicle_color路由
  24. $router->resource('vehicle_color', '\catchAdmin\yunying\controller\VehicleColor');
  25. // insurance路由
  26. $router->resource('insurance', '\catchAdmin\yunying\controller\Insurance');
  27. // insureRecords路由
  28. $router->resource('insureRecords', '\catchAdmin\yunying\controller\InsureRecords');
  29. })->middleware('auth');