| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- use Illuminate\Http\Request;
- use Illuminate\Support\Facades\Route;
- /*
- |--------------------------------------------------------------------------
- | API Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register API routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | is assigned the "api" middleware group. Enjoy building your API!
- |
- */
- Route::get("getUserInfo", 'LoginController@getUserInfo')->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');
- });
- });
- });
|