Spaces:
Runtime error
Runtime error
File size: 495 Bytes
cd8bd0a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 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 });
}
}
|