1234567891011121314151617181920212223242526272829303132 |
- <?php
-
- /*
- |--------------------------------------------------------------------------
- | Web Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register web routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | contains the "web" middleware group. Now create something great!
- |
- */
-
- Route::get('/', function () {
- return view('welcome');
- });
-
-
- Route::post('/common/upload', 'CommonController@upload');
- Route::get('/my/orders', 'CommonController@orders');
- Route::post('/{order_type}/{order_id}/comment', 'CommonController@addComment');
- Route::get('/{order_type}/{order_id}/comments', 'CommonController@comments');
-
- Route::post('/campaign/store', 'CampaignController@store');
- Route::delete('/campaign/delete', 'CampaignController@delete');
- Route::get('/campaigns', 'CampaignController@list');
- Route::get('/campaign', 'CampaignController@get');
-
- Route::post('/product/store', 'ProductController@store');
- Route::delete('/product/delete', 'ProductController@delete');
- Route::get('/products', 'ProductController@list');
- Route::get('/product', 'ProductController@get');
|