9292 * Настройки участника
9393 */
9494 Route::get ('/setting/ ' )->controller (SettingController::class)->name ('setting ' );
95- Route::get ('/setting/avatar ' )->controller (SettingController::class, 'avatarForm ' )->where ([ ' type ' => ' [a-z_]+ ' ])-> name ('setting.avatar ' );
96- Route::get ('/setting/ignored ' )->controller (SettingController::class, 'ignoredForm ' )->where ([ ' type ' => ' [a-z_]+ ' ])-> name ('setting.ignored ' );
97- Route::get ('/setting/security ' )->controller (SettingController::class, 'securityForm ' )->where ([ ' type ' => ' [a-z_]+ ' ])-> name ('setting.security ' );
98- Route::get ('/setting/notifications ' )->controller (SettingController::class, 'notificationForm ' )->where ([ ' type ' => ' [a-z_]+ ' ])-> name ('setting.notification ' );
99- Route::get ('/setting/preferences ' )->controller (SettingController::class, 'preferencesForm ' )->where ([ ' type ' => ' [a-z_]+ ' ])-> name ('setting.preferences ' );
100- Route::get ('/setting/notifications ' )->controller (SettingController::class, 'deletionForm ' )->where ([ ' type ' => ' [a-z_]+ ' ])-> name ('setting.deletion ' );
95+ Route::get ('/setting/avatar ' )->controller (SettingController::class, 'avatarForm ' )->name ('setting.avatar ' );
96+ Route::get ('/setting/ignored ' )->controller (SettingController::class, 'ignoredForm ' )->name ('setting.ignored ' );
97+ Route::get ('/setting/security ' )->controller (SettingController::class, 'securityForm ' )->name ('setting.security ' );
98+ Route::get ('/setting/notifications ' )->controller (SettingController::class, 'notificationForm ' )->name ('setting.notification ' );
99+ Route::get ('/setting/preferences ' )->controller (SettingController::class, 'preferencesForm ' )->name ('setting.preferences ' );
100+ Route::get ('/setting/notifications ' )->controller (SettingController::class, 'deletionForm ' )->name ('setting.deletion ' );
101101
102102 Route::get ('/messages ' )->controller (MessagesController::class)->name ('messages ' );
103103 Route::get ('/messages/{id} ' )->controller (MessagesController::class, 'dialog ' )->where (['id ' => '[0-9]+ ' ])->name ('dialogues ' );
138138 Route::get ('/redirect/facet/{id} ' )->controller (RedirectController::class)->where (['id ' => '[0-9]+ ' ])->name ('redirect.facet ' );
139139
140140 Route::get ('/post/img/{id}/remove ' )->controller (EditPublicationController::class, 'coverPostRemove ' )->where (['id ' => '[0-9]+ ' ])->name ('delete.post.cover ' );
141- Route::get ('/cover/img/{id}/remove ' )->controller (SettingController::class, 'coverUserRemove ' )->where (['id ' => '[0-9]+ ' ])->name ('delete.user.cover ' );
141+ Route::get ('/cover/img/{id}/remove ' )->controller (SettingController::class, 'coverRemove ' )->where (['id ' => '[0-9]+ ' ])->name ('delete.user.cover ' );
142142
143143 Route::toGroup ()->protect ();
144144 Route::post ('/favorite ' )->controller (FavoriteController::class);
164164 Route::post ('/new/email ' )->controller (SettingController::class, 'newEmail ' );
165165
166166 // Отправка и изменение контента
167- Route::post ('/user/edit/profile ' )->controller (SettingController::class, 'profile ' )-> where ([ ' type ' => ' [a-z]+ ' ] )->name ('setting.edit.profile ' );
168- Route::post ('/user/edit/avatar ' )->controller (SettingController::class, 'avatar ' )-> where ([ ' type ' => ' [a-z]+ ' ] )->name ('setting.edit.avatar ' );
169- Route::post ('/user/edit/security ' )->controller (SettingController::class, 'security ' )-> where ([ ' type ' => ' [a-z]+ ' ] )->name ('setting.edit.security ' );
170- Route::post ('/user/edit/preferences ' )->controller (SettingController::class, 'preferences ' )-> where ([ ' type ' => ' [a-z]+ ' ] )->name ('setting.edit.preferences ' );
171- Route::post ('/user/edit/notification ' )->controller (SettingController::class, 'notification ' )-> where ([ ' type ' => ' [a-z]+ ' ] )->name ('setting.edit.notification ' );
167+ Route::post ('/user/edit/profile ' )->controller (SettingController::class, 'edit ' )->name ('setting.edit.profile ' );
168+ Route::post ('/user/edit/avatar ' )->controller (SettingController::class, 'avatarEdit ' )->name ('setting.edit.avatar ' );
169+ Route::post ('/user/edit/security ' )->controller (SettingController::class, 'securityEdit ' )->name ('setting.edit.security ' );
170+ Route::post ('/user/edit/preferences ' )->controller (SettingController::class, 'preferencesEdit ' )->name ('setting.edit.preferences ' );
171+ Route::post ('/user/edit/notification ' )->controller (SettingController::class, 'notificationEdit ' )->name ('setting.edit.notification ' );
172172
173173 Route::post ('/edit/facet/logo/{type}/{facet_id} ' )->controller (EditFacetController::class, 'logoEdit ' )->where (['type ' => '[a-z]+ ' , 'facet_id ' => '[0-9]+ ' ])->name ('edit.logo.facet ' );
174174 Route::endGroup ();
289289
290290// Тестирование
291291Route::toGroup ()->protect ();
292- Route::post ('/add/content/test-edit ' )->controller (PublicationController::class, 'addEditTest ' )->name ('add.post-edit ' );
292+ // Route::post('/add/content/test-edit')->controller(PublicationController::class, 'addEditTest')->name('add.post-edit');
293293Route::endGroup ();
294294Route::get ('/editor/test ' )->controller (PublicationController::class, 'editorTest ' );
0 commit comments