Download src/app/api/pricing/defaults/route.ts from rais133/omniroute: direct link, hf CLI and curl.
- Browser
- Download file 495 Bytes
-
https://huggingface.co/spaces/rais133/omniroute/resolve/main/src/app/api/pricing/defaults/route.ts
- Command line
-
hf download hf://spaces/rais133/omniroute/src/app/api/pricing/defaults/route.ts
-
curl -L -o route.ts https://huggingface.co/spaces/rais133/omniroute/resolve/main/src/app/api/pricing/defaults/route.ts
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 }); | |
| } | |
| } | |