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

1234567891011121314151617181920212223242526272829303132
  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::post('/common/upload', 'CommonController@upload');
  16. Route::get('/my/orders', 'CommonController@orders');
  17. Route::post('/{order_type}/{order_id}/comment', 'CommonController@addComment');
  18. Route::get('/{order_type}/{order_id}/comments', 'CommonController@comments');
  19. Route::post('/campaign/store', 'CampaignController@store');
  20. Route::delete('/campaign/delete', 'CampaignController@delete');
  21. Route::get('/campaigns', 'CampaignController@list');
  22. Route::get('/campaign', 'CampaignController@get');
  23. Route::post('/product/store', 'ProductController@store');
  24. Route::delete('/product/delete', 'ProductController@delete');
  25. Route::get('/products', 'ProductController@list');
  26. Route::get('/product', 'ProductController@get');