mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-12-22 09:40:23 -05:00
52 lines
1.7 KiB
PHP
52 lines
1.7 KiB
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Public Routes
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
|
|
Route::get('/', function() {
|
|
Head::setTitle('Home');
|
|
return view('website.index');
|
|
});
|
|
|
|
Route::get('/contact', function() {
|
|
Head::setTitle('Contact');
|
|
return view('website.contact');
|
|
});
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Post Routes
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
|
|
Route::post('/contact-submit', 'ContactController@postContactSubmit');
|
|
Route::post('/subscription-submit', 'SubscriptionController@postSubscriptionSubmit');
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Authentication Routes
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
|
|
Route::auth();
|
|
Route::get('/logout', 'Auth\LoginController@logout');
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Dashboard Routes
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
|
|
Route::group([ 'prefix' => 'dashboard' ], function() {
|
|
Route::get('/', 'DashboardController@index');
|
|
Route::get('/contact', 'DashboardController@getContact');
|
|
Route::get('/subscriptions', 'DashboardController@getSubscriptions');
|
|
Route::get('/export/{model}', 'DashboardController@getExport');
|
|
Route::post('/image-upload', 'DashboardController@postImageUpload');
|
|
Route::post('/edit', 'DashboardController@postEdit');
|
|
Route::post('/reorder', 'DashboardController@postReorder');
|
|
Route::delete('/delete', 'DashboardController@deleteDelete');
|
|
});
|