13 lines
522 B
PHP
13 lines
522 B
PHP
<?php
|
|
|
|
use kernel\App;
|
|
use kernel\CgRouteCollector;
|
|
|
|
include KERNEL_APP_MODULES_DIR . "/tgbot/routs/tgbot.php";
|
|
|
|
|
|
App::$collector->group(["prefix" => "miniapp"], function (CGRouteCollector $router) {
|
|
App::$collector->get('/', [\app\modules\tgbot\controllers\TgMainController::class, 'actionMain']);
|
|
App::$collector->get('/news', [\app\modules\tgbot\controllers\TgMainController::class, 'actionNews']);
|
|
App::$collector->get('/promo', [\app\modules\tgbot\controllers\TgMainController::class, 'actionPromo']);
|
|
}); |