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 ''; -}); - +# ---------------------------------------------------------------# +# 使用注解系统定义路由,不再使用 路由配置文件 # +# ---------------------------------------------------------------#