shareit/routes/web.php

39 lines
1.4 KiB
PHP
Raw Normal View History

2018-09-07 23:12:34 +00:00
<?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 () {
2018-09-09 03:57:44 +00:00
return view('welcome');
2018-09-07 23:12:34 +00:00
});
Route::get('/product', 'ProductController@index')->middleware('auth');
Route::get('/product/{product}', 'ProductController@show')->middleware('auth');
Route::post('/product', 'ProductController@store')->middleware('auth');
2018-09-11 23:48:09 +00:00
Route::get('/item', 'ItemController@index')->middleware('auth');
Route::get('/item/{item}', 'ItemController@show')->middleware('auth');
2018-09-11 23:48:09 +00:00
Route::post('/item', 'ItemController@store')->middleware('auth');
2018-09-13 00:27:35 +00:00
Route::delete('/item', 'ItemController@delete')->middleware('auth');
Route::post('/take', 'TakeController@store')->middleware('auth');
2018-09-15 05:09:07 +00:00
Route::delete('/take', 'TakeController@delete')->middleware('auth');
Route::post('/alert', 'AlertController@store')->middleware('auth');
Route::delete('/alert', 'AlertController@delete')->middleware('auth');
2018-09-11 23:48:09 +00:00
Route::post('/user', 'UserController@store')->middleware('auth');
Route::delete('/user', 'UserController@delete')->middleware('auth');
2018-09-09 04:03:41 +00:00
Auth::routes();
Route::get('/home', 'HomeController@index')->name('home')->middleware('auth');