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']); +});