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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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::get('/home', 'HomeController@index')->name('home');
  17. Route::post('/upload', 'CommonController@upload');
  18. Route::post('/server/store', 'ServerInfoController@store');
  19. Route::get('/{order_type}/{order_id}/comments', 'CommonController@comments');
  20. Route::post('/{order_type}/status', 'CommonController@status');
  21. Route::get('/{order_type}/{id}', 'CommonController@get')->where('id', '[0-9]+');
  22. Route::delete('/{order_type}/{id}', 'CommonController@delete')->where('id', '[0-9]+');
  23. Route::get('/campaigns', 'CampaignController@list');
  24. Route::get('/products', 'ProductController@list');
  25. Route::get('/house_clean_orders', 'HouseCleanOrderController@list');
  26. Route::get('/house_appliance_clean_orders', 'HouseApplianceCleanOrderController@list');
  27. Route::get('/housekeeper_orders', 'HousekeeperOrderController@list');
  28. Route::get('/maternity_matron_orders', 'MaternityMatronOrderController@list');
  29. Route::get('/product_orders', 'ProductOrderController@list');
  30. Route::get('/server_infos', 'ServerInfoController@list');
  31. Route::get('/classifys', 'ClassifyController@list');
  32. Route::post('/{order_type}/{order_id}/comment', 'CommonController@addComment');
  33. Route::post('/campaign/store', 'CampaignController@store');
  34. Route::post('/product/store', 'ProductController@store');
  35. Route::post('/house_clean_order/store', 'HouseCleanOrderController@store');
  36. Route::post('/house_appliance_clean_order/store', 'HouseApplianceCleanOrderController@store');
  37. Route::post('/housekeeper_order/store', 'HousekeeperOrderController@store');
  38. Route::post('/maternity_matron_order/store', 'MaternityMatronOrderController@store');
  39. Route::post('/product_order/store', 'ProductOrderController@store');
  40. Route::post('/server_info/store', 'ServerInfoController@store');
  41. Route::middleware(['auth'])->group(function () {
  42. });