mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
workflow change
This commit is contained in:
@@ -16,16 +16,13 @@ use Illuminate\Support\Facades\Storage;
|
||||
Auth::routes();
|
||||
Route::get('logout', 'Auth\LoginController@logout')->name('logout');
|
||||
|
||||
/* Index Route */
|
||||
if (env('APP_DEBUG')) {
|
||||
Route::get('/', function () {
|
||||
return view('default');
|
||||
});
|
||||
} else {
|
||||
Route::get('/', function () {
|
||||
return view('public');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/** Public Route */
|
||||
Route::get('/', 'PublicController@index');
|
||||
Route::get('/news', 'NewsController@index');
|
||||
Route::get('/news/{id}', 'NewsController@show');
|
||||
Route::get('/activity', 'ComplementaryActivityController@index');
|
||||
|
||||
Route::middleware(['auth','admin'])->group(function () {
|
||||
|
||||
@@ -65,6 +62,9 @@ Route::middleware(['auth','admin'])->group(function () {
|
||||
Route::get('/admin/config/job/edit/{id}' , 'JobController@edit');
|
||||
Route::get('/admin/config' , 'ConfigController@index');
|
||||
|
||||
/** Public page */
|
||||
Route::get('/admin/public/edit/{config}', 'PublicController@edit');
|
||||
Route::post('/admin/public/edit/{config}', 'PublicController@update');
|
||||
|
||||
/** Inventory */
|
||||
Route::get('/admin/inventory' , 'InventoryController@index');
|
||||
@@ -89,11 +89,16 @@ Route::middleware(['auth','admin'])->group(function () {
|
||||
|
||||
/** Profil */
|
||||
Route::get('/admin/profil/avatar' , 'UserController@UserAvatar');
|
||||
Route::get('/admin/profil/password' , 'UserController@UserPassword');
|
||||
Route::get('/admin/profil/adress' , 'UserController@UserAdress');
|
||||
Route::post('/admin/profil/edit/adress' , 'UserController@editUserAdress');
|
||||
Route::post('/admin/profil/edit/password' , 'UserController@editUserPassword');
|
||||
Route::get('/admin/profil/edit/avatar/{id}' , 'UserController@editUserAvatar');
|
||||
Route::get('/admin/profil/{id?}' , 'UserController@showUserProfil');
|
||||
|
||||
/** Files */
|
||||
Route::get('/admin/files','FilesController@index');
|
||||
Route::get('/admin/guide','FilesController@guide');
|
||||
});
|
||||
|
||||
Route::middleware(['auth','staff'])->group(function () {
|
||||
@@ -112,20 +117,15 @@ Route::middleware(['auth','staff'])->group(function () {
|
||||
Route::post('/ecc/inventory/remove/{id}/{periode}/{niveau}' , 'ECCController@booking_remove');
|
||||
Route::get('/ecc/list','ECCController@list');
|
||||
Route::get('/ecc/files','ECCController@files');
|
||||
Route::get('/ecc/settings','ECCController@settings');
|
||||
Route::get('/ecc/settings/password' , 'ECCController@UserPassword');
|
||||
Route::post('/ecc/settings/edit/password' , 'UserController@editUserPassword');
|
||||
Route::get('/ecc/settings/avatar', 'ECCController@UserAvatar');
|
||||
Route::get('/ecc/settings/edit/avatar/{id}' , 'UserController@editUserAvatar');
|
||||
Route::get('/ecc/settings/adress', 'ECCController@UserAdress');
|
||||
Route::post('/ecc/settings/edit/adress', 'UserController@editUserAdress');
|
||||
|
||||
});
|
||||
/* Other Route */
|
||||
Route::get('/test', function () {
|
||||
|
||||
$fileContents = "1234";
|
||||
|
||||
Storage::put('avatars/1', $fileContents);
|
||||
return view('test');
|
||||
|
||||
});
|
||||
|
||||
Route::get('/william', function() {
|
||||
return view('william');
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user