api.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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::middleware('auth:api')->get('/user', function (Request $request) {
  14. return $request->user();
  15. });
  16. Route::any('login', 'Api\LoginController@login');
  17. Route::group(['middleware'=> ['checkLogin']],function ($route){
  18. });
  19. Route::any('menuAdd', 'Api\SysMenuController@add');
  20. Route::any('menuEdit', 'Api\SysMenuController@edit');
  21. Route::any('menuDel', 'Api\SysMenuController@del');
  22. Route::any('menuList', 'Api\SysMenuController@menuList');
  23. Route::any('employeeAdd', 'Api\EmployeeController@employeeAdd');
  24. Route::any('employeeEdit', 'Api\EmployeeController@employeeEdit');
  25. Route::any('employeeDel', 'Api\EmployeeController@employeeDel');
  26. Route::any('employeeList', 'Api\EmployeeController@employeeList');
  27. Route::any('departAdd', 'Api\EmployeeController@departAdd');
  28. Route::any('departEdit', 'Api\EmployeeController@departEdit');
  29. Route::any('departDel', 'Api\EmployeeController@departDel');
  30. Route::any('departList', 'Api\EmployeeController@departList');
  31. Route::any('roleAdd', 'Api\EmployeeController@roleAdd');
  32. Route::any('roleEdit', 'Api\EmployeeController@roleEdit');
  33. Route::any('roleDel', 'Api\EmployeeController@roleDel');
  34. Route::any('roleList', 'Api\EmployeeController@roleList');
  35. Route::any('teamAdd', 'Api\EmployeeController@teamAdd');
  36. Route::any('teamEdit', 'Api\EmployeeController@teamEdit');
  37. Route::any('teamDel', 'Api\EmployeeController@teamDel');
  38. Route::any('teamList', 'Api\EmployeeController@teamList');
  39. Route::any('employeeDepart', 'Api\EmployeeController@employeeDepart');
  40. Route::any('employeeTeam', 'Api\EmployeeController@employeeTeam');
  41. Route::any('employeeRole', 'Api\EmployeeController@employeeRole');
  42. Route::any('measureAdd', 'Api\MeasureController@Add');
  43. Route::any('measureEdit', 'Api\MeasureController@Edit');
  44. Route::any('measureDel', 'Api\MeasureController@Del');
  45. Route::any('measureList', 'Api\MeasureController@measureList');
  46. Route::any('basicMaterialList', 'Api\MaterialController@basicMaterialList');
  47. Route::any('basicMaterialEdit', 'Api\MaterialController@basicMaterialEdit');
  48. Route::any('basicMaterialAdd', 'Api\MaterialController@basicMaterialAdd');
  49. Route::any('basicMaterialDel', 'Api\MaterialController@basicMaterialDel');
  50. Route::any('materialList', 'Api\MaterialController@materialList');
  51. Route::any('materialDetail', 'Api\MaterialController@materialDetail');
  52. Route::any('materialEdit', 'Api\MaterialController@materialEdit');
  53. Route::any('materialAdd', 'Api\MaterialController@materialAdd');
  54. Route::any('materialDel', 'Api\MaterialController@materialDel');
  55. Route::any('productList', 'Api\MaterialController@productList');
  56. Route::any('productEdit', 'Api\MaterialController@edit');
  57. Route::any('productAdd', 'Api\MaterialController@edd');
  58. Route::any('productDel', 'Api\MaterialController@del');
  59. Route::any('bomList', 'Api\BomController@bomList');
  60. Route::any('bomDetail', 'Api\BomController@bomDetail');
  61. Route::any('bomEdit', 'Api\BomController@edit');
  62. Route::any('bomAdd', 'Api\BomController@add');
  63. Route::any('bomDel', 'Api\BomController@del');
  64. Route::any('orderList', 'Api\OrderController@orderList');
  65. Route::any('orderAdd', 'Api\OrderController@add');
  66. Route::any('orderEdit', 'Api\OrderController@add');
  67. Route::any('orderDel', 'Api\OrderController@del');
  68. Route::any('orderDetail', 'Api\OrderController@orderDetail');
  69. Route::any('tagDetail', 'Api\OrderTagController@tagDetail');
  70. Route::any('boxDetail', 'Api\OrderBoxController@boxDetail');
  71. Route::any('transportDetail', 'Api\OrderTransportController@transportDetail');
  72. Route::any('boxIn', 'Api\OrderBoxController@boxIn');
  73. Route::any('boxOut', 'Api\OrderBoxController@boxOut');
  74. Route::any('boxTransport', 'Api\OrderTransportController@boxTransport');
  75. Route::any('transportConfirm', 'Api\OrderTransportController@transportConfirm');