wx.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. use Illuminate\Http\Request;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | API Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register API routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | is assigned the "api" middleware group. Enjoy building your API!
  11. |
  12. */
  13. Route::any('wxSetUser', 'Api\WxController@setUser');
  14. Route::any('wxSetMobile', 'Api\WxController@setMobile');
  15. Route::any('wxLogin', 'Api\WxController@login');
  16. Route::group(['middleware'=> ['checkWx']],function ($route){
  17. //文件上传统一方法
  18. $route->any('uploadFile', 'Api\FileUploadController@uploadFile');
  19. $route->any('saleOrderList', 'Api\WxController@saleOrderList');
  20. $route->any('checkAll', 'Api\CheckController@checkAll');
  21. //采购单
  22. $route->any('purchaseOrderList', 'Api\WxController@purchaseOrderList');
  23. $route->any('employeeList', 'Api\EmployeeController@employeeList');
  24. $route->any('departList', 'Api\EmployeeController@departList');
  25. $route->any('storehouseList', 'Api\StorehouseController@storehouseList');
  26. $route->any('basicTypeList', 'Api\BasicTypeController@basicTypeList');
  27. $route->any('productList', 'Api\ProductController@productList');
  28. $route->any('salesOrderList', 'Api\SalesOrderController@salesOrderList');
  29. });