12345678910111213141516171819202122232425262728293031323334 |
- <?php
- use Illuminate\Http\Request;
- /*
- |--------------------------------------------------------------------------
- | 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::any('wxSetUser', 'Api\WxController@setUser');
- Route::any('wxSetMobile', 'Api\WxController@setMobile');
- Route::any('wxLogin', 'Api\WxController@login');
- Route::group(['middleware'=> ['checkWx']],function ($route){
- //文件上传统一方法
- $route->any('uploadFile', 'Api\FileUploadController@uploadFile');
- $route->any('saleOrderList', 'Api\WxController@saleOrderList');
- $route->any('checkAll', 'Api\CheckController@checkAll');
- //采购单
- $route->any('purchaseOrderList', 'Api\WxController@purchaseOrderList');
- $route->any('employeeList', 'Api\EmployeeController@employeeList');
- $route->any('departList', 'Api\EmployeeController@departList');
- $route->any('storehouseList', 'Api\StorehouseController@storehouseList');
- $route->any('basicTypeList', 'Api\BasicTypeController@basicTypeList');
- $route->any('productList', 'Api\ProductController@productList');
- $route->any('salesOrderList', 'Api\SalesOrderController@salesOrderList');
- });
|