From 973539681a34ff843a0283cfd88cf55af0678221 Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Wed, 22 Dec 2021 17:37:03 +0300 Subject: [PATCH] =?UTF-8?q?[*]=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D0=B2=D1=8B=D0=B7=D0=BE=D0=B2=D0=B5=20=D0=BC?= =?UTF-8?q?=D0=B5=D1=82=D0=BE=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/test.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/api/test.php b/api/test.php index 680c34c..864f638 100644 --- a/api/test.php +++ b/api/test.php @@ -28,4 +28,10 @@ // pre($USER); require_once __DIR__ . '/../inc/lib/CAPI.class.php'; $API = new CAPI(); - $API->$method(); \ No newline at end of file + try { + $API->$method(); + } catch (Throwable $e) { + CJson::create(['status' => 'fail', 'message' => 'Метод '.$method.' не найден']); + } + + \ No newline at end of file