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
|
|
|
});
|
2018-09-08 15:38:01 +00:00
|
|
|
|
2018-09-19 23:41:36 +00:00
|
|
|
Route::get('/product', 'ProductController@index')->middleware('verified');
|
2018-09-17 14:06:35 +00:00
|
|
|
Route::get('/product/{product}', 'ProductController@show')->middleware('verified');
|
|
|
|
Route::post('/product', 'ProductController@store')->middleware('verified');
|
|
|
|
Route::patch('/product', 'ProductController@patch')->middleware('verified');
|
|
|
|
Route::delete('/product', 'ProductController@delete')->middleware('verified');
|
2018-09-11 23:48:09 +00:00
|
|
|
|
2018-09-17 14:06:35 +00:00
|
|
|
Route::get('/item', 'ItemController@index')->middleware('verified');
|
|
|
|
Route::get('/item/{item}', 'ItemController@show')->middleware('verified');
|
|
|
|
Route::post('/item', 'ItemController@store')->middleware('verified');
|
|
|
|
Route::patch('/item', 'ItemController@patch')->middleware('verified');
|
|
|
|
Route::delete('/item', 'ItemController@delete')->middleware('verified');
|
2018-09-13 00:27:35 +00:00
|
|
|
|
2018-09-17 14:06:35 +00:00
|
|
|
Route::post('/take', 'TakeController@store')->middleware('verified');
|
|
|
|
Route::delete('/take', 'TakeController@delete')->middleware('verified');
|
2018-09-15 05:09:07 +00:00
|
|
|
|
2018-09-17 14:06:35 +00:00
|
|
|
Route::post('/alert', 'AlertController@store')->middleware('verified');
|
|
|
|
Route::delete('/alert', 'AlertController@delete')->middleware('verified');
|
2018-09-11 23:48:09 +00:00
|
|
|
|
2018-09-17 14:06:35 +00:00
|
|
|
Route::post('/user', 'UserController@store')->middleware('verified');
|
|
|
|
Route::delete('/user', 'UserController@delete')->middleware('verified');
|
2018-09-14 00:16:16 +00:00
|
|
|
|
2018-09-17 14:06:35 +00:00
|
|
|
Auth::routes(['verify' => true]);
|
2018-09-09 04:03:41 +00:00
|
|
|
|
2018-09-10 04:23:32 +00:00
|
|
|
Route::get('/home', 'HomeController@index')->name('home')->middleware('auth');
|
2018-09-17 23:33:05 +00:00
|
|
|
Route::get('/help', function () {
|
|
|
|
return view('help');
|
2018-09-19 23:41:36 +00:00
|
|
|
});
|