<?php
/** Public read-only endpoint the landing calls to resolve the current offer link. */
declare(strict_types=1);

require __DIR__ . '/../admin/lib.php';

header('Content-Type: application/json; charset=utf-8');
header('Cache-Control: no-store, max-age=0');
header('X-Content-Type-Options: nosniff');

$config = config_load();

echo json_encode(['link' => $config['link']], JSON_UNESCAPED_SLASHES);
