Files
Shifted/app/api/printful/scopes/route.ts
2026-02-10 01:14:19 +00:00

15 lines
404 B
TypeScript

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 }
);
}
}