2024-09-03 16:29:44 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use kernel\App;
|
|
|
|
use Phroute\Phroute\RouteCollector;
|
|
|
|
|
|
|
|
|
|
|
|
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']);
|
|
|
|
App::$collector->get('/activate', [\kernel\controllers\ModuleController::class, 'actionActivate']);
|
2024-10-08 17:06:14 +03:00
|
|
|
App::$collector->get('/view', [\kernel\controllers\ModuleController::class, 'actionView']);
|
2024-09-24 17:22:09 +03:00
|
|
|
});
|
|
|
|
});
|
2024-09-03 16:29:44 +03:00
|
|
|
});
|