import { NextRequest, NextResponse } from 'next/server' export default async function handler(req: NextRequest) { // Enable CORS const headers = { 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET, OPTIONS', 'Access-Control-Allow-Headers': 'Content-Type, Authorization', } if (req.method === 'OPTIONS') { return new NextResponse(null, { status: 200, headers }) } return new NextResponse(JSON.stringify({ status: 'healthy', service: 'TCG Vault API', version: '1.0.0', timestamp: new Date().toISOString() }), { status: 200, headers: { ...headers, 'Content-Type': 'application/json', }, }) }