user profile
This commit is contained in:
@@ -45,10 +45,20 @@ $routes->group('', ['filter' => 'org'], static function ($routes) {
|
||||
$routes->post('organizations/(:num)/users/(:num)/block', 'Organizations::blockUser/$1/$2');
|
||||
$routes->post('organizations/(:num)/users/(:num)/unblock', 'Organizations::unblockUser/$1/$2');
|
||||
$routes->post('organizations/(:num)/users/(:num)/remove', 'Organizations::removeUser/$1/$2');
|
||||
$routes->post('organizations/(:num)/leave', 'Organizations::leaveOrganization/$1');
|
||||
$routes->post('organizations/(:num)/users/leave', 'Organizations::leaveOrganization/$1');
|
||||
$routes->post('organizations/(:num)/users/(:num)/resend', 'Organizations::resendInvite/$1/$2');
|
||||
$routes->post('organizations/(:num)/users/(:num)/cancel', 'Organizations::cancelInvite/$1/$2');
|
||||
});
|
||||
|
||||
# Маршруты профиля
|
||||
$routes->get('profile', 'Profile::index');
|
||||
$routes->get('profile/organizations', 'Profile::organizations');
|
||||
$routes->get('profile/security', 'Profile::security');
|
||||
$routes->post('profile/update-name', 'Profile::updateName');
|
||||
$routes->post('profile/upload-avatar', 'Profile::uploadAvatar');
|
||||
$routes->post('profile/change-password', 'Profile::changePassword');
|
||||
$routes->post('profile/leave-org/(:num)', 'Profile::leaveOrganization/$1');
|
||||
|
||||
# Подключение роутов модулей
|
||||
require_once APPPATH . 'Modules/Clients/Config/Routes.php';
|
||||
Reference in New Issue
Block a user