..
This commit is contained in:
@@ -13,7 +13,8 @@ return [
|
||||
'handler' => [
|
||||
'http' => [
|
||||
Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class,
|
||||
Aether\Exception\Handler\AppExceptionHandler::class,
|
||||
App\Exception\Handler\AppExceptionHandler::class,
|
||||
// Aether\Exception\Handler\AppExceptionHandler::class,
|
||||
],
|
||||
'jsonrpc-http' => [
|
||||
Aether\Exception\AppExceptionHandler::class,
|
||||
|
||||
@@ -3,8 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
use Hyperf\HttpServer\Router\Router;
|
||||
|
||||
Router::addRoute(['GET', 'POST', 'HEAD'], '/', 'App\Controller\IndexController@index');
|
||||
// Router::addRoute(['GET', 'POST', 'HEAD'], '/', 'App\Controller\IndexController@index');
|
||||
//
|
||||
// Router::get('/favicon.ico', function () {
|
||||
// return '';
|
||||
// });
|
||||
|
||||
Router::get('/favicon.ico', function () {
|
||||
return '';
|
||||
Router::get('/', function () {
|
||||
return 'Hello World';
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user