This commit is contained in:
2025-12-30 21:50:02 +08:00
parent f4430e2dd0
commit 5358205fbe
+1 -3
View File
@@ -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.");
}