<?php
// Simple test - just return success for GET
header('Content-Type: application/json');
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
header('Access-Control-Allow-Headers: *');

if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {
    http_response_code(200);
    exit();
}

// Just return method info
echo json_encode([
    'success' => true,
    'method' => $_SERVER['REQUEST_METHOD'],
    'message' => 'Test endpoint working'
]);
?>
