<?php
require_once __DIR__ . '/includes/functions.php';
$stmt = getDB()->query("SELECT * FROM system_logs ORDER BY created_at DESC LIMIT 20");
$logs = $stmt->fetchAll(PDO::FETCH_ASSOC);
echo json_encode($logs, JSON_PRETTY_PRINT);
