mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-12-23 01:50:23 -05:00
63 lines
1.9 KiB
PHP
63 lines
1.9 KiB
PHP
<?php
|
|
|
|
use App\Utilities\Language;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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!
|
|
|
|
|
*/
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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\.-]*');
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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');
|
|
});
|