wayfarer-weather/app/api/providers/route.ts

11 lines
370 B
TypeScript
Raw Normal View History

2026-10-31 21:20:16 -05:00
import { NextResponse } from "next/server";
import { listProviders } from "@/lib/weather/providers";
// Read env vars per request so adding a key doesn't require a rebuild.
export const dynamic = "force-dynamic";
/** GET /api/providers → which providers exist and which have keys configured. */
export function GET() {
return NextResponse.json(listProviders());
}