2016-08-19 16:38:49 -04:00
|
|
|
<?php
|
|
|
|
|
2020-04-23 22:17:13 -04:00
|
|
|
use Illuminate\Support\Facades\Route;
|
2019-12-03 00:11:44 -05:00
|
|
|
use App\Dashboard;
|
2017-02-06 23:44:07 -05:00
|
|
|
|
2016-08-19 16:38:49 -04:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Authentication Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2019-12-03 00:11:44 -05:00
|
|
|
Route::auth([ 'register' => Dashboard::canRegister() ]);
|
2022-05-23 21:29:51 -04:00
|
|
|
Route::get('/logout', 'App\Http\Controllers\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
|
2022-05-23 21:29:51 -04:00
|
|
|
Route::get('/', 'App\Http\Controllers\DashboardController@getIndex');
|
|
|
|
Route::get('/view/{model}', 'App\Http\Controllers\DashboardController@getView');
|
|
|
|
Route::get('/edit/{model}', 'App\Http\Controllers\DashboardController@getEditList');
|
|
|
|
Route::get('/edit/{model}/{id}', 'App\Http\Controllers\DashboardController@getEditItem');
|
|
|
|
Route::get('/export/{model}', 'App\Http\Controllers\DashboardController@getExport');
|
|
|
|
Route::post('/reorder', 'App\Http\Controllers\DashboardController@postReorder');
|
|
|
|
Route::post('/update', 'App\Http\Controllers\DashboardController@postUpdate');
|
|
|
|
Route::post('/image-upload', 'App\Http\Controllers\DashboardController@postImageUpload');
|
|
|
|
Route::post('/file-upload', 'App\Http\Controllers\DashboardController@postFileUpload');
|
|
|
|
Route::delete('/delete', 'App\Http\Controllers\DashboardController@deleteDelete');
|
|
|
|
Route::delete('/image-delete', 'App\Http\Controllers\DashboardController@deleteImageDelete');
|
|
|
|
Route::delete('/file-delete', 'App\Http\Controllers\DashboardController@deleteFileDelete');
|
2018-04-25 01:22:33 -04:00
|
|
|
|
|
|
|
// Dashboard Settings
|
2022-05-23 21:29:51 -04:00
|
|
|
Route::get('/settings', 'App\Http\Controllers\DashboardController@getSettings');
|
|
|
|
Route::post('/user/password-update', 'App\Http\Controllers\DashboardController@postUserPasswordUpdate');
|
|
|
|
Route::post('/user/profile-update', 'App\Http\Controllers\DashboardController@postUserProfileUpdate');
|
|
|
|
Route::post('/user/profile-image-upload', 'App\Http\Controllers\DashboardController@postUserProfileImageUpload');
|
|
|
|
Route::delete('/user/profile-image-delete', 'App\Http\Controllers\DashboardController@deleteUserProfileImageDelete');
|
2018-04-25 01:22:33 -04:00
|
|
|
|
|
|
|
// Credits Page
|
2022-05-23 21:29:51 -04:00
|
|
|
Route::get('/credits', 'App\Http\Controllers\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) {
|
2024-05-20 13:16:27 -04:00
|
|
|
return Language::setSessionLanguage($lang);
|
2018-01-09 21:57:43 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
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\.-]*');
|