家政小程序
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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. Route::any('/login', 'CommonController@login');
  16. Route::post('/upload', 'CommonController@upload');
  17. Route::post('/server/store', 'ServerInfoController@store');
  18. Route::get('/{order_type}/{order_id}/comments', 'CommonController@comments');
  19. Route::post('/{order_type}/status', 'CommonController@status');
  20. Route::get('/{order_type}/{id}', 'CommonController@get');
  21. Route::delete('/{order_type}/{id}', 'CommonController@delete');
  22. Route::get('/campaigns', 'CampaignController@list');
  23. Route::get('/products', 'ProductController@list');
  24. Route::post('/house_clean_orders', 'HouseCleanOrderController@list');
  25. Route::post('/house_appliance_clean_orders', 'HouseApplianceCleanOrderController@list');
  26. Route::post('/housekeeper_orders', 'HousekeeperOrderController@list');
  27. Route::post('/maternity_matron_orders', 'MaternityMatronOrderController@list');
  28. Route::post('/product_orders', 'ProductOrderController@list');
  29. Route::group(['middleware' => ['web', 'wechat.oauth']], function () {
  30. Route::get('/my/orders', 'CommonController@orders');
  31. Route::post('/{order_type}/{order_id}/comment', 'CommonController@addComment');
  32. Route::post('/campaign/store', 'CampaignController@store');
  33. Route::post('/product/store', 'ProductController@store');
  34. Route::post('/house_clean_order/store', 'HouseCleanOrderController@store');
  35. Route::post('/house_appliance_clean_order/store', 'HouseApplianceCleanOrderController@store');
  36. Route::post('/housekeeper_order/store', 'HousekeeperOrderController@store');
  37. Route::post('/maternity_matron_order/store', 'MaternityMatronOrderController@store');
  38. Route::post('/product_order/store', 'ProductOrderController@store');
  39. });