企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 配置文件 路由基础配置文件位置在项目下 `Config/router.php` 。 ``` <?php return [ //-- 项目URL根目录 'url_path' => (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https:' : 'http:' . '//' . $_SERVER['SERVER_NAME'] . ($_SERVER["SERVER_PORT"] == '80' ? '' : ':' . $_SERVER["SERVER_PORT"] . '/'), //-- 默认模块 'default_module' => 'Home', //--默认控制器 'default_controller' => 'Index', //--默认行为 'default_method' => 'index', //-----默认404 'default_404' => function () { return \GFPHP\GFPHP::$Template->display('@' . METHOD_NAME); }, //--控制器后缀 'controllerSuffix' => 'Controller', //--行为后缀 'methodSuffix' => 'Action', ]; ``` 在此文件中可以路由的基本配置。