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'] ?? '');