12 lines
384 B
TypeScript
12 lines
384 B
TypeScript
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 });
|
|
}
|
|
}
|