update routes config
This commit is contained in:
@@ -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 '';
|
||||
});
|
||||
|
||||
|
||||
# ---------------------------------------------------------------#
|
||||
# 使用注解系统定义路由,不再使用 路由配置文件 #
|
||||
# ---------------------------------------------------------------#
|
||||
|
||||
Reference in New Issue
Block a user