diff --git a/app/adminapi/http/middleware/InitMiddleware.php b/app/adminapi/http/middleware/InitMiddleware.php index a4cf6d17..667d56f9 100644 --- a/app/adminapi/http/middleware/InitMiddleware.php +++ b/app/adminapi/http/middleware/InitMiddleware.php @@ -41,6 +41,7 @@ class InitMiddleware try { $controller = str_replace('.', '\\', $request->controller()); $controller = '\\app\\adminapi\\controller\\' . $controller . 'Controller'; + halt($controller); $controllerClass = invoke($controller); if (($controllerClass instanceof BaseAdminController) === false) { throw new ControllerExtendException($controller, '404');