2016-08-19 16:38:49 -04:00
|
|
|
<?php
|
|
|
|
|
2019-12-03 00:11:44 -05:00
|
|
|
use App\Dashboard;
|
2017-02-06 23:44:07 -05:00
|
|
|
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
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2019-12-03 00:11:44 -05:00
|
|
|
Route::auth([ 'register' => Dashboard::canRegister() ]);
|
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() {
|
2018-04-25 01:22:33 -04:00
|
|
|
// Dashboard CMS
|
2018-04-18 23:32:22 -04:00
|
|
|
Route::get('/', 'DashboardController@getIndex');
|
2018-04-18 00:38:11 -04:00
|
|
|
Route::get('/view/{model}', 'DashboardController@getView');
|
|
|
|
Route::get('/edit/{model}', 'DashboardController@getEditList');
|
2018-04-18 23:32:22 -04:00
|
|
|
Route::get('/edit/{model}/{id}', 'DashboardController@getEditItem');
|
2016-08-19 19:44:30 -04:00
|
|
|
Route::get('/export/{model}', 'DashboardController@getExport');
|
2018-04-25 01:22:33 -04:00
|
|
|
Route::post('/reorder', 'DashboardController@postReorder');
|
|
|
|
Route::post('/update', 'DashboardController@postUpdate');
|
2016-08-19 18:50:08 -04:00
|
|
|
Route::post('/image-upload', 'DashboardController@postImageUpload');
|
2018-01-18 22:29:49 -05:00
|
|
|
Route::post('/file-upload', 'DashboardController@postFileUpload');
|
2016-08-19 18:50:08 -04:00
|
|
|
Route::delete('/delete', 'DashboardController@deleteDelete');
|
2018-01-21 20:55:07 -05:00
|
|
|
Route::delete('/image-delete', 'DashboardController@deleteImageDelete');
|
|
|
|
Route::delete('/file-delete', 'DashboardController@deleteFileDelete');
|
2018-04-25 01:22:33 -04:00
|
|
|
|
|
|
|
// Dashboard Settings
|
|
|
|
Route::get('/settings', 'DashboardController@getSettings');
|
|
|
|
Route::post('/user/password-update', 'DashboardController@postUserPasswordUpdate');
|
2018-04-25 23:27:45 -04:00
|
|
|
Route::post('/user/profile-update', 'DashboardController@postUserProfileUpdate');
|
2018-04-25 01:22:33 -04:00
|
|
|
Route::post('/user/profile-image-upload', 'DashboardController@postUserProfileImageUpload');
|
|
|
|
Route::delete('/user/profile-image-delete', 'DashboardController@deleteUserProfileImageDelete');
|
|
|
|
|
|
|
|
// Credits Page
|
|
|
|
Route::get('/credits', 'DashboardController@getCredits');
|
2016-08-19 16:38:49 -04:00
|
|
|
});
|
2018-01-09 21:57:43 -05:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Public Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
Route::get('/language/{lang}', function($lang) {
|
|
|
|
Language::setSessionLanguage($lang);
|
|
|
|
return redirect()->back();
|
|
|
|
});
|
|
|
|
|
|
|
|
Route::get('/{vue?}', function() {
|
2018-04-15 21:05:42 -04:00
|
|
|
return view('templates.public');
|
2018-01-09 21:57:43 -05:00
|
|
|
})->where('vue', '[\/\w\.-]*');
|