Initial Route setup

This commit is contained in:
Russ Long 2018-03-30 07:42:06 -04:00
parent 9ceb47e451
commit b8e9c1566f

View File

@ -11,6 +11,20 @@
| |
*/ */
Route::get('/', function () { if (env('APP_ENV') === 'production') {
URL::forceScheme('https');
}
Route::get('/welcome', function () {
return view('welcome'); 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']);
});