<?php
require_once __DIR__ . '/config/database.php';
$db = Database::getInstance();
$users = $db->getAll('SELECT id,email,first_name,last_name FROM users ORDER BY id DESC LIMIT 10');
header('Content-Type: application/json');
echo json_encode($users, JSON_PRETTY_PRINT);
