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.
25 lines
1012 B
25 lines
1012 B
<?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 redirect()->route('login');
|
|
});
|
|
|
|
Auth::routes();
|
|
|
|
Route::get('/home', 'HomeController@index')->name('home');
|
|
Route::post('cart/add-draft/{product}', 'CartController@add')->name('cart.add');
|
|
Route::post('cart/add-draft-item/{draftKey}/{product}', 'CartController@addDraftItem')->name('cart.add-draft-item');
|
|
Route::delete('cart/remove-draft-item/{draftKey}', 'CartController@removeDraftItem')->name('cart.remove-draft-item');
|
|
Route::delete('cart/remove', 'CartController@remove')->name('cart.remove');
|
|
Route::delete('cart/destroy', 'CartController@destroy')->name('cart.destroy');
|