家政小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Web Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register web routes for your application. These
  8. | routes are loaded by the RouteServiceProvider within a group which
  9. | contains the "web" middleware group. Now create something great!
  10. |
  11. */
  12. Route::get('/', function () {
  13. return view('welcome');
  14. });
  15. //Auth::routes();
  16. Route::post('/login', 'UserController@login');
  17. Route::post('/logout', 'UserController@logout');
  18. Route::post('/upload', 'CommonController@upload');
  19. Route::middleware(['manage.token'])->group(function () {
  20. Route::delete('/product_order/{id}', 'ProductOrderController@delete')->where('id', '[0-9]+');
  21. Route::post('/maternity_matron_order/remark', 'MaternityMatronOrderController@remark');
  22. Route::post('/product_order/remark', 'ProductOrderController@remark');
  23. Route::post('/option_order/remark', 'OptionOrderController@remark');
  24. Route::post('/reward/price', 'RewardController@price');
  25. Route::get('/reward/price', 'RewardController@getPrice');
  26. Route::get('/classify/parent', 'ClassifyController@parent');
  27. Route::post('/product_classify/store', 'ProductClassifyController@store');
  28. Route::get('/product_classify', 'ProductClassifyController@list');
  29. Route::get('/product/home', 'ProductController@home');
  30. Route::post('/product/home', 'ProductController@setHome');
  31. Route::post('/classify/home', 'ClassifyController@setHome');
  32. Route::get('/classify/home', 'ClassifyController@home');
  33. Route::get('/products', 'ProductController@manage_list');
  34. Route::get('/classify/{id}', 'ClassifyController@get');
  35. Route::get('/{order_type}/comments', 'CommonController@type_comments');
  36. Route::post('/{order_type}/status', 'CommonController@status');
  37. Route::post('/{order_type}/price', 'CommonController@price');
  38. Route::get('/{order_type}/{id}', 'CommonController@get')->where('id', '[0-9]+');
  39. Route::delete('/{order_type}/{id}', 'CommonController@delete')->where('id', '[0-9]+');
  40. Route::get('/campaigns', 'CampaignController@list');
  41. Route::get('/house_clean_orders', 'HouseCleanOrderController@list');
  42. Route::get('/house_appliance_clean_orders', 'HouseApplianceCleanOrderController@list');
  43. Route::get('/housekeeper_orders', 'HousekeeperOrderController@list');
  44. Route::get('/maternity_matron_orders', 'MaternityMatronOrderController@list');
  45. Route::get('/product_orders', 'ProductOrderController@list');
  46. Route::get('/server_infos', 'ServerInfoController@list');
  47. Route::get('/classifies', 'ClassifyController@list2');
  48. Route::get('/option_orders', 'OptionOrderController@list');
  49. Route::post('/{order_type}/{order_id}/comment', 'CommonController@addComment');
  50. Route::post('/campaign/store', 'CampaignController@store');
  51. Route::post('/product/store', 'ProductController@store');
  52. Route::post('/classify/store', 'ClassifyController@store');
  53. Route::post('/house_clean_order/store', 'HouseCleanOrderController@store');
  54. Route::post('/house_appliance_clean_order/store', 'HouseApplianceCleanOrderController@store');
  55. Route::post('/housekeeper_order/store', 'HousekeeperOrderController@store');
  56. Route::post('/maternity_matron_order/store', 'MaternityMatronOrderController@store');
  57. Route::post('/product_order/store', 'ProductOrderController@store');
  58. Route::post('/server_info/store', 'ServerInfoController@store');
  59. Route::get('/introduce', 'HomePageController@introduce');
  60. Route::post('/introduce/store', 'HomePageController@store');
  61. Route::post('/bottom/store', 'HomePageController@bottom');
  62. Route::get('/bottom', 'HomePageController@getBottom');
  63. });