diff --git a/http-core/Handler/Router.php b/http-core/Handler/Router.php index 15682e4b..416d2bca 100644 --- a/http-core/Handler/Router.php +++ b/http-core/Handler/Router.php @@ -245,7 +245,7 @@ class Router private function loadRouterFile($files) { try { - include_once "Router.php"; + include_once "$files"; } catch (Throwable $exception) { di(Logger::class)->error('router', [ $exception->getMessage(),