import { NextResponse } from 'next/server'

export async function GET() {
  try {
    return NextResponse.json({
      status: 'connected',
      service: 'bitquery',
      timestamp: new Date().toISOString(),
      health: 'healthy'
    })
  } catch (error) {
    return NextResponse.json({
      status: 'error',
      service: 'bitquery',
      error: error instanceof Error ? error.message : 'Unknown error'
    }, { status: 500 })
  }
}
