<?php
// api/FileManagerAPI.php (HTTP endpoint)
require_once __DIR__ . '/../services/FileManagerService.php';

$service = new FileManagerService();

$path = $_REQUEST['path'] ?? '/';
$result = $service->getFileList($path);
header('Content-Type: application/json');
echo json_encode($result);
?>
