route.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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->get('vehicle/getRfidTagsList', '\catchAdmin\yunying\controller\Vehicle@getRfidTagsList');
  15. $router->get('vehicle/getMapList', '\catchAdmin\yunying\controller\Vehicle@getMapList');
  16. $router->post('vehicle/importVehicle', '\catchAdmin\yunying\controller\Vehicle@importVehicle');
  17. $router->resource('vehicle', '\catchAdmin\yunying\controller\Vehicle');
  18. // 导出车辆
  19. $router->post('export_vehicle', '\catchAdmin\yunying\controller\Vehicle@export_vehicle');
  20. // vehicle_photo路由
  21. $router->resource('vehicle_photo', '\catchAdmin\yunying\controller\VehiclePhoto');
  22. // stolen_vehicle路由
  23. $router->resource('stolen_vehicle', '\catchAdmin\yunying\controller\StolenVehicle');
  24. // vehicle_brand路由
  25. $router->resource('vehicle_brand', '\catchAdmin\yunying\controller\VehicleBrand');
  26. // vehicle_color路由
  27. $router->resource('vehicle_color', '\catchAdmin\yunying\controller\VehicleColor');
  28. // insurance路由
  29. $router->resource('insurance', '\catchAdmin\yunying\controller\Insurance');
  30. // insureRecords路由
  31. $router->resource('insureRecords', '\catchAdmin\yunying\controller\InsureRecords');
  32. // keyPerSonnel路由
  33. $router->resource('keyPersonnel', '\catchAdmin\yunying\controller\KeyPersonnel');
  34. $router->post('keyPersonnel/importExcel', '\catchAdmin\yunying\controller\KeyPersonnel@importExcel');
  35. })->middleware('auth');