<?php
header('Content-Type: application/json; charset=utf-8');

$path = __DIR__ . '/gallery.json';
if (!file_exists($path)) {
  http_response_code(404);
  echo json_encode(['error' => 'gallery.json not found']);
  exit;
}
echo file_get_contents($path);
?>