mirror of
https://github.com/brunofontes/shareit.git
synced 2025-11-15 07:50:54 -03:00
Including Items and Products views and controllers
This commit is contained in:
@@ -15,10 +15,11 @@ Route::get('/', function () {
|
||||
return view('welcome');
|
||||
});
|
||||
|
||||
Route::get('/product', 'ProductController@index');
|
||||
Route::get('/product/{product}', 'ProductController@show');
|
||||
Route::get('/item', 'ItemController@index');
|
||||
Route::get('/item/{item}', 'ItemController@show');
|
||||
Route::get('/product', 'ProductController@index')->middleware('auth');
|
||||
Route::get('/product/{product}', 'ProductController@show')->middleware('auth');
|
||||
Route::post('/product', 'ProductController@store')->middleware('auth');
|
||||
Route::get('/item', 'ItemController@index')->middleware('auth');
|
||||
Route::get('/item/{item}', 'ItemController@show')->middleware('auth');
|
||||
Auth::routes();
|
||||
|
||||
Route::get('/home', 'HomeController@index')->name('home');
|
||||
Route::get('/home', 'HomeController@index')->name('home')->middleware('auth');
|
||||
|
||||
Reference in New Issue
Block a user