ai_api / src /app /api /pricing /defaults /route.ts
Yogesh
initial deploy
cd8bd0a
Raw
History Blame Contribute Delete
495 Bytes
import { NextResponse } from "next/server";
import { getDefaultPricing } from "@/shared/constants/pricing";
/**
* GET /api/pricing/defaults
* Get default pricing configuration
*/
export async function GET() {
try {
const defaultPricing = getDefaultPricing();
return NextResponse.json(defaultPricing);
} catch (error) {
console.error("Error fetching default pricing:", error);
return NextResponse.json({ error: "Failed to fetch default pricing" }, { status: 500 });
}
}