hypothetical/routes/web.php

67 lines
2.2 KiB
PHP
Raw Normal View History

2016-08-19 16:38:49 -04:00
<?php
use App\Utilities\Language;
2017-01-26 19:17:37 -05:00
/*
|--------------------------------------------------------------------------
| 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!
|
*/
2016-08-19 16:38:49 -04:00
/*
|--------------------------------------------------------------------------
| Authentication Routes
|--------------------------------------------------------------------------
*/
Route::auth();
Route::get('/logout', 'Auth\LoginController@logout');
2016-08-19 16:38:49 -04:00
/*
|--------------------------------------------------------------------------
| Dashboard Routes
|--------------------------------------------------------------------------
*/
Route::group([ 'prefix' => 'dashboard' ], function() {
2016-08-19 16:38:49 -04:00
Route::get('/', 'DashboardController@index');
Route::get('/contact', 'DashboardController@getContact');
Route::get('/subscriptions', 'DashboardController@getSubscriptions');
2016-08-19 19:44:30 -04:00
Route::get('/export/{model}', 'DashboardController@getExport');
Route::post('/image-upload', 'DashboardController@postImageUpload');
Route::post('/file-upload', 'DashboardController@postFileUpload');
Route::post('/edit', 'DashboardController@postEdit');
Route::post('/reorder', 'DashboardController@postReorder');
Route::delete('/delete', 'DashboardController@deleteDelete');
Route::delete('/image-delete', 'DashboardController@deleteImageDelete');
Route::delete('/file-delete', 'DashboardController@deleteFileDelete');
2016-08-19 16:38:49 -04:00
});
/*
|--------------------------------------------------------------------------
| Public Routes
|--------------------------------------------------------------------------
*/
Route::get('/language/{lang}', function($lang) {
Language::setSessionLanguage($lang);
return redirect()->back();
});
// Route::get('/', function() {
// return view('pages.index');
// });
//
// Route::get('/contact', function() {
// return view('pages.contact');
// });
Route::get('/{vue?}', function() {
return view('templates.public-vue');
})->where('vue', '[\/\w\.-]*');