From 810ca49de4123472befb03fa3aee99c3e09101dd Mon Sep 17 00:00:00 2001 From: stasbilay02 Date: Thu, 26 Sep 2024 11:06:25 +0300 Subject: [PATCH] some fix --- kernel/routs/admin.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/kernel/routs/admin.php b/kernel/routs/admin.php index b527c8f..d638d15 100644 --- a/kernel/routs/admin.php +++ b/kernel/routs/admin.php @@ -3,22 +3,8 @@ use kernel\App; use Phroute\Phroute\RouteCollector; -//App::$collector->filter("auth", function (){ -// if(!isset($_COOKIE['user_id'])) -// { -// header('Location: /admin/login'); -// -// return false; -// } -//}); App::$collector->group(["prefix" => "admin"], function (RouteCollector $router){ -// App::$collector->group(["before" => "auth"], function (RouteCollector $router){ -// App::$collector->get('/', [\kernel\controllers\ModuleController::class, 'actionIndex']); -// }); -// App::$collector->get('/login', [\kernel\modules\secure\controllers\SecureController::class, 'actionLogin']); -// App::$collector->get('/logout', [\kernel\modules\secure\controllers\SecureController::class, 'actionLogout']); -// App::$collector->post('/auth', [\kernel\modules\secure\controllers\SecureController::class, 'actionAuth']); App::$collector->group(["before" => "auth"], function (RouteCollector $router){ App::$collector->group(["prefix" => "module"], function (RouteCollector $router){ App::$collector->get('/', [\kernel\controllers\ModuleController::class, 'actionIndex']);