<?php
require_once __DIR__ . '/altcha.php';

header('Content-Type: application/json; charset=utf-8');
header('Cache-Control: no-store');

if ($_SERVER['REQUEST_METHOD'] !== 'GET') {
    http_response_code(405);
    exit;
}

echo json_encode(VYC_Altcha::create_challenge());
