freight.php 508 B

123456789101112131415161718
  1. <?php
  2. use think\facade\Route;
  3. /**
  4. * 商户管理 相关路由
  5. */
  6. Route::group('freight', function () {
  7. //物流公司资源路由
  8. Route::resource('express', 'v1.freight.Express')->name('ExpressResource');
  9. //修改状态
  10. Route::put('express/set_status/:id/:status', 'v1.freight.Express/set_status');
  11. })->middleware([
  12. \app\http\middleware\AllowOriginMiddleware::class,
  13. \app\adminapi\middleware\AdminAuthTokenMiddleware::class,
  14. \app\adminapi\middleware\AdminCkeckRole::class
  15. ]);