<?php
// The only thing the landing page asks the server for: the current offer link.
require __DIR__ . '/admin/config.php';

header('Content-Type: application/json; charset=utf-8');
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
header('Pragma: no-cache');

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