<?php
require_once __DIR__ . '/backend/config/Database.php';

$db = new Database();
$conn = $db->getConnection();

$query = "SELECT * FROM users";
$result = $conn->query($query);
$users = $result->fetch_all(MYSQLI_ASSOC);

echo json_encode($users, JSON_PRETTY_PRINT);
?>
