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

web.php 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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');
  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::post('/{order_type}/{order_id}/comment', 'CommonController@addComment');
  31. Route::post('/campaign/store', 'CampaignController@store');
  32. Route::post('/product/store', 'ProductController@store');
  33. Route::post('/house_clean_order/store', 'HouseCleanOrderController@store');
  34. Route::post('/house_appliance_clean_order/store', 'HouseApplianceCleanOrderController@store');
  35. Route::post('/housekeeper_order/store', 'HousekeeperOrderController@store');
  36. Route::post('/maternity_matron_order/store', 'MaternityMatronOrderController@store');
  37. Route::post('/product_order/store', 'ProductOrderController@store');
  38. Route::middleware(['auth'])->group(function () {
  39. });