<?php
/**
 * API endpoint to get the configurable event page URL
 * Returns JSON response with the event page URL
 */

header('Content-Type: application/json');
require_once 'get_event_page_url.php';

try {
    $eventPageUrl = getEventPageUrl();
    echo json_encode(['success' => true, 'eventPageUrl' => $eventPageUrl]);
} catch (Exception $e) {
    echo json_encode(['success' => false, 'eventPageUrl' => '../index.html']);
}
?>
