From b8e9c1566f8fc95ddde144f43cd58f78b22a4c5c Mon Sep 17 00:00:00 2001 From: Russ Long Date: Fri, 30 Mar 2018 07:42:06 -0400 Subject: [PATCH] Initial Route setup --- routes/web.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 810aa34..129fb01 100644 --- a/routes/web.php +++ b/routes/web.php @@ -11,6 +11,20 @@ | */ -Route::get('/', function () { +if (env('APP_ENV') === 'production') { + URL::forceScheme('https'); +} +Route::get('/welcome', function () { return view('welcome'); }); +Auth::routes(); +Route::get('/', [ 'uses' => 'PagesController@home']); +Route::get('home', [ 'uses' => 'PagesController@home']); +Route::group(['middleware' => 'auth'], function() { + Route::get('domains', [ 'uses' => 'PagesController@domains']); + Route::post('domains', [ 'uses' => 'PagesController@domains']); + Route::get('newrecord', [ 'uses' => 'PagesController@newrecord']); + Route::post('newrecord', [ 'uses' => 'PagesController@newrecord']); + Route::get('updaterecord', [ 'uses' => 'PagesController@updaterecord']); + Route::post('updaterecord', [ 'uses' => 'PagesController@updaterecord']); +});