From 8f6793ebc4b017b0b828b3a9d2f69f9825134b05 Mon Sep 17 00:00:00 2001 From: Nick Zeng Date: Wed, 12 Nov 2025 09:34:58 +0800 Subject: [PATCH] update routes config --- backend/config/routes.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/backend/config/routes.php b/backend/config/routes.php index 0b34404..276a88a 100644 --- a/backend/config/routes.php +++ b/backend/config/routes.php @@ -9,12 +9,7 @@ declare(strict_types=1); * @contact group@hyperf.io * @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 ''; -}); - +# ---------------------------------------------------------------# +# 使用注解系统定义路由,不再使用 路由配置文件 # +# ---------------------------------------------------------------#