import { NextResponse } from "next/server";
import { refreshPinterestToken } from "@/lib/pinterest-oauth";

export async function POST() {
  const result = await refreshPinterestToken();
  return NextResponse.json(result, { status: result.ok ? 200 : 400 });
}
