diff --git a/src/Base/NotFoundController.php b/src/Base/NotFoundController.php index fd93cfb..8cff4f7 100644 --- a/src/Base/NotFoundController.php +++ b/src/Base/NotFoundController.php @@ -15,10 +15,8 @@ class NotFoundController extends Controller */ public function fail(): ResponseInterface { - var_dump($this->request->getMethod()); - var_dump($this->response); if ($this->request->getMethod() == 'OPTIONS') { - return $this->response->html(''); + return $this->response->json([], 200); } else { return $this->response->withStatus(404, "not found page."); }