<?php
// File: /api/get_case_data.php
header('Content-Type: application/json');

require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/include_all.inc.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/api/pro_features.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/api/case_data_handler.php';

$isPro = isProFeatureEnabled('additional_cases');
$availableCases = getAvailableCases($isPro);

echo json_encode($availableCases);
exit;