pdns-web/routes/web.php

36 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2018-03-29 14:51:40 -04: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!
|
*/
2018-03-30 07:42:06 -04:00
if (env('APP_ENV') === 'production') {
URL::forceScheme('https');
}
Route::get('/welcome', function () {
2018-03-29 14:51:40 -04:00
return view('welcome');
});
2018-03-30 07:42:06 -04:00
Auth::routes();
Route::get('/', [ 'uses' => 'PagesController@home']);
Route::group(['middleware' => 'auth'], function() {
2018-03-30 09:16:28 -04:00
Route::get('createzone', [ 'uses' => 'PagesController@createzone']);
Route::post('createzone', [ 'uses' => 'PagesController@createzone']);
2018-03-30 07:42:06 -04:00
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']);
});
2018-03-30 08:08:32 -04:00
Auth::routes();
Route::get('/home', 'HomeController@index')->name('home');