semoga bisa

This commit is contained in:
azgrey
2026-06-11 10:57:22 +07:00
parent ce91ee7449
commit d153f4fe26
+12
View File
@@ -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'] ?? '');