2015-07-08 03:34:58 -04:00
|
|
|
<?php
|
|
|
|
|
2016-01-03 23:55:13 -05:00
|
|
|
Route::group(['middleware' => ['web']], function () {
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Public Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
2015-07-08 03:34:58 -04:00
|
|
|
|
2016-01-03 23:55:13 -05:00
|
|
|
Route::get('/', function () {
|
|
|
|
return view('website.home');
|
|
|
|
});
|
2015-12-01 01:07:03 -05:00
|
|
|
|
2016-01-03 23:55:13 -05:00
|
|
|
Route::get('/contact', function() {
|
|
|
|
return view('website.contact');
|
|
|
|
});
|
2016-01-03 19:08:53 -05:00
|
|
|
|
2016-01-03 23:55:13 -05:00
|
|
|
Route::post('/contact-submit', 'ContactController@postContactSubmit');
|
2016-01-03 19:08:53 -05:00
|
|
|
|
2016-01-03 23:55:13 -05:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Content Management Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
2015-12-01 01:07:03 -05:00
|
|
|
|
2016-01-03 23:55:13 -05:00
|
|
|
// Authentication
|
|
|
|
Route::get('auth/login', 'Auth\AuthController@getLogin');
|
|
|
|
Route::post('auth/login', 'Auth\AuthController@postLogin');
|
|
|
|
Route::get('auth/logout', 'Auth\AuthController@getLogout');
|
2015-12-01 01:07:03 -05:00
|
|
|
|
2016-01-03 23:55:13 -05:00
|
|
|
// Registration
|
|
|
|
Route::get('auth/register', 'Auth\AuthController@getRegister');
|
|
|
|
Route::post('auth/register', 'Auth\AuthController@postRegister');
|
|
|
|
});
|