From d153f4fe26a363a6ce46092ed1eafddb91034b0d Mon Sep 17 00:00:00 2001 From: azgrey Date: Thu, 11 Jun 2026 10:57:22 +0700 Subject: [PATCH] semoga bisa --- api.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api.php b/api.php index 3ca97db..63cd3dc 100644 --- a/api.php +++ b/api.php @@ -27,6 +27,18 @@ try { exit; } +// DEBUG SEMENTARA - hapus setelah selesai +if ($action === 'debug') { + echo json_encode([ + 'ok' => true, + 'host' => $db_host, + 'port' => $db_port, + 'name' => $db_name, + 'user' => $db_user, + ]); + exit; +} + $body = json_decode(file_get_contents('php://input'), true) ?? []; $action = $body['action'] ?? ($_GET['action'] ?? '');