up
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../config/config_enhanced.php';
|
||||
require_once __DIR__ . '/../classes/Database.php';
|
||||
|
||||
try {
|
||||
$db = Database::getInstance();
|
||||
$row = $db->fetch('SELECT * FROM webhook_logs ORDER BY created_at DESC LIMIT 1');
|
||||
if ($row) {
|
||||
echo json_encode(['found' => true, 'row' => $row]);
|
||||
} else {
|
||||
echo json_encode(['found' => false]);
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
echo json_encode(['error' => $e->getMessage()]);
|
||||
}
|
||||
Reference in New Issue
Block a user