init
This commit is contained in:
commit
6250d23297
53 changed files with 6381 additions and 0 deletions
10
app/api/providers/route.ts
Normal file
10
app/api/providers/route.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue