Skip to content

Commit e9443f1

Browse files
committed
Added default route for favicon.ico
1 parent 75a5739 commit e9443f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/routes.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@
1212
use Hyperf\HttpServer\Router\Router;
1313

1414
Router::addRoute(['GET', 'POST', 'HEAD'], '/', 'App\Controller\IndexController@index');
15+
16+
Router::get('/favicon.ico', function () {
17+
return '';
18+
});

0 commit comments

Comments
 (0)