route.php 1.3 KB

1234567891011121314151617181920212223242526
  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. })->middleware('auth');