2024-09-03 16:29:44 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use kernel\App;
|
|
|
|
use Phroute\Phroute\RouteCollector;
|
|
|
|
|
2024-10-22 11:09:35 +03:00
|
|
|
App::$collector->filter("auth", [\kernel\middlewares\AuthMiddleware::class, "handler"]);
|
2024-09-03 16:29:44 +03:00
|
|
|
|
|
|
|
App::$collector->group(["prefix" => "admin"], function (RouteCollector $router){
|
2024-09-24 17:22:09 +03:00
|
|
|
App::$collector->group(["before" => "auth"], function (RouteCollector $router){
|
|
|
|
App::$collector->group(["prefix" => "module"], function (RouteCollector $router){
|
|
|
|
App::$collector->get('/', [\kernel\controllers\ModuleController::class, 'actionIndex']);
|
2024-10-10 22:40:09 +03:00
|
|
|
App::$collector->get('/page/{page_number}', [\kernel\controllers\ModuleController::class, 'actionIndex']);
|
2024-09-24 17:22:09 +03:00
|
|
|
App::$collector->get('/activate', [\kernel\controllers\ModuleController::class, 'actionActivate']);
|
2024-10-11 15:44:15 +03:00
|
|
|
App::$collector->get('/deactivate', [\kernel\controllers\ModuleController::class, 'actionDeactivate']);
|
2024-10-08 17:06:14 +03:00
|
|
|
App::$collector->get('/view', [\kernel\controllers\ModuleController::class, 'actionView']);
|
2024-10-14 15:52:52 +03:00
|
|
|
App::$collector->get('/update', [\kernel\controllers\ModuleController::class, 'actionUpdate']);
|
2024-09-24 17:22:09 +03:00
|
|
|
});
|
|
|
|
});
|
2024-09-03 16:29:44 +03:00
|
|
|
});
|