2016-08-19 16:38:49 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Public Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
Route::get('/', function() {
|
|
|
|
return view('website.index');
|
|
|
|
});
|
|
|
|
|
|
|
|
Route::get('/contact', function() {
|
|
|
|
return view('website.contact');
|
|
|
|
});
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Post Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
Route::post('/contact-submit', 'ContactController@postContactSubmit');
|
|
|
|
Route::post('/subscription-submit', 'SubscriptionController@postSubscriptionSubmit');
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Authentication Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
Route::auth();
|
2016-08-19 18:50:08 -04:00
|
|
|
Route::get('/logout', 'Auth\LoginController@logout');
|
2016-08-19 16:38:49 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Dashboard Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2016-08-19 18:50:08 -04:00
|
|
|
Route::group([ 'prefix' => 'dashboard' ], function() {
|
2016-08-19 16:38:49 -04:00
|
|
|
Route::get('/', 'DashboardController@index');
|
2016-08-19 18:50:08 -04:00
|
|
|
Route::get('/contact', 'DashboardController@getContact');
|
|
|
|
Route::get('/subscriptions', 'DashboardController@getSubscriptions');
|
2016-08-19 19:44:30 -04:00
|
|
|
Route::get('/export/{model}', 'DashboardController@getExport');
|
2016-08-19 18:50:08 -04:00
|
|
|
Route::post('/image-upload', 'DashboardController@postImageUpload');
|
|
|
|
Route::post('/edit', 'DashboardController@postEdit');
|
|
|
|
Route::post('/reorder', 'DashboardController@postReorder');
|
|
|
|
Route::delete('/delete', 'DashboardController@deleteDelete');
|
2016-08-19 16:38:49 -04:00
|
|
|
});
|