<?php
require_once __DIR__ . '/app/Config.php';
require_once __DIR__ . '/app/Database.php';
\Peak\Config::init();
$users = \Peak\Database::fetchAll('SELECT id, full_name, email, role FROM users');
header('Content-Type: application/json');
echo json_encode(['users' => $users]);
