import { NextResponse } from "next/server"; import { getPrintfulTokenScopes } from "../../../../lib/printful"; export async function GET() { try { const result = await getPrintfulTokenScopes(); return NextResponse.json({ scopes: result }); } catch (err: any) { return NextResponse.json( { error: err?.message || "Failed to load token scopes." }, { status: 500 } ); } }