13 lines
522 B
PHP
Raw Normal View History

2025-01-03 02:11:09 +03:00
<?php
2025-01-03 18:07:07 +03:00
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']);
2025-01-19 17:15:58 +03:00
App::$collector->get('/news', [\app\modules\tgbot\controllers\TgMainController::class, 'actionNews']);
App::$collector->get('/promo', [\app\modules\tgbot\controllers\TgMainController::class, 'actionPromo']);
2025-01-03 18:07:07 +03:00
});