get('/', 'Home::index'); $routes->get('login', 'Auth::login'); $routes->post('login', 'Auth::login'); $routes->get('register', 'Auth::register'); $routes->post('register', 'Auth::register'); $routes->get('register/success', 'Auth::registerSuccess'); $routes->get('logout', 'Auth::logout'); $routes->get('auth/verify/(:any)', 'Auth::verify/$1'); $routes->get('auth/resend-verification', 'Auth::resendVerification'); $routes->post('auth/resend-verification', 'Auth::resendVerification'); # Защищённые маршруты (с фильтром org) $routes->group('', ['filter' => 'org'], static function ($routes) { $routes->get('organizations', 'Organizations::index'); $routes->get('organizations/create', 'Organizations::create'); $routes->post('organizations/create', 'Organizations::create'); $routes->get('organizations/edit/(:num)', 'Organizations::edit/$1'); $routes->post('organizations/edit/(:num)', 'Organizations::edit/$1'); $routes->get('organizations/delete/(:num)', 'Organizations::delete/$1'); $routes->post('organizations/delete/(:num)', 'Organizations::delete/$1'); $routes->get('organizations/switch/(:num)', 'Organizations::switch/$1'); }); # Подключение роутов модулей require_once APPPATH . 'Modules/Clients/Config/Routes.php';