diff --git a/extend/catcher/event/LoadModuleRoutes.php b/extend/catcher/event/LoadModuleRoutes.php index 864ab7b..78a50de 100644 --- a/extend/catcher/event/LoadModuleRoutes.php +++ b/extend/catcher/event/LoadModuleRoutes.php @@ -19,7 +19,19 @@ class LoadModuleRoutes $router = app(Route::class); $router->group(function () use ($router) { - include CatchAdmin::getRoutes(); + foreach ($this->getRoutes() as $route) { + include $route; + } }); } + + protected function getRoutes() + { + return [ + CatchAdmin::directory() . 'login' . DIRECTORY_SEPARATOR . 'route.php', + CatchAdmin::getRoutes(), + ]; + } + + }