update routes config

This commit is contained in:
2025-11-12 09:34:58 +08:00
parent 1f676dcdda
commit 8f6793ebc4
+3 -8
View File
@@ -9,12 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
use Hyperf\HttpServer\Router\Router;
Router::addRoute(['GET', 'POST', 'HEAD'], '/', 'App\Controller\IndexController@index');
Router::get('/favicon.ico', function () {
return '';
});
# ---------------------------------------------------------------#
# 使用注解系统定义路由,不再使用 路由配置文件 #
# ---------------------------------------------------------------#