This commit is contained in:
Aether
2025-09-24 08:25:17 +08:00
parent cd777a5e79
commit 43637f26b5
2 changed files with 14 additions and 14 deletions

View File

@@ -1,10 +1,10 @@
<?php
declare(strict_types=1);
// use Hyperf\HttpServer\Router\Router;
use Hyperf\HttpServer\Router\Router;
// Router::addRoute(['GET', 'POST', 'HEAD'], '/', 'App\Controller\IndexController@index');
//
// Router::get('/favicon.ico', function () {
// return '';
// });
Router::addRoute(['GET', 'POST', 'HEAD'], '/', 'App\Controller\IndexController@index');
Router::get('/favicon.ico', function () {
return '';
});