middleware("access.restriction"); Route::get("resetNameOrPwd", 'LoginController@resetNameOrPwd')->middleware("access.restriction"); Route::prefix("v1")->group(function (){ Route::middleware('throttle:' . config('api.rate_limits.sign')) ->group(function () { //登录 Route::POST('login', 'LoginController@login'); }); Route::middleware(['throttle:' . config('api.rate_limits.access'),"authorizing"]) ->group(function () { Route::prefix("waybill")->group(function () { Route::prefix("dispatch")->group(function () { Route::GET('/', 'WaybillController@getData'); Route::POST('/', 'WaybillController@dispatch'); Route::POST('dailyBilling', 'WaybillController@dailyBilling'); }); }); Route::prefix("order")->group(function () { Route::GET('batchRecover', 'OrderController@recoverBatch'); }); Route::prefix("inventory")->group(function () { Route::get('inventoryTask', 'InventoryController@getInventoryTask'); Route::POST('locationInvPro', 'InventoryController@locationInvPro'); Route::POST('getInventoryDetail', 'InventoryController@getInventoryDetail'); Route::POST('stockInventory', 'InventoryController@stockInventory'); Route::POST('skipInventory', 'InventoryController@skipInventory'); }); }); }); Route::prefix("reject")->group(function () { Route::POST('save', 'RejectController@rejectSave'); Route::GET('delete', 'RejectController@rejectDelete'); Route::GET('itemDelete', 'RejectController@rejectBillItemDelete'); });