This commit is contained in:
lizandrogd
2026-01-21 10:57:02 -05:00
parent f6a62ce360
commit 5e9220590a
7 changed files with 159 additions and 5 deletions
+9
View File
@@ -0,0 +1,9 @@
<?php
require_once __DIR__ . '/../config/config.php';
try {
$db = Database::getInstance();
$rows = $db->fetchAll('SELECT * FROM conversations ORDER BY created_at DESC LIMIT 5');
echo json_encode($rows, JSON_PRETTY_PRINT);
} catch (Throwable $t) {
echo "Error: " . $t->getMessage() . "\n";
}