import { NextResponse } from 'next/server';
import { getITGlueClient } from '@/lib/services/itglue-client';

export async function GET() {
  try {
    const client = getITGlueClient();
    const result = await client.testConnection();
    return NextResponse.json(result);
  } catch (err: any) {
    return NextResponse.json({ ok: false, error: err.message }, { status: 500 });
  }
}
