13 lines
268 B
TypeScript
13 lines
268 B
TypeScript
|
|
export const runtime = "nodejs";
|
||
|
|
|
||
|
|
import { DAILY_VERSE } from "@/lib/ai";
|
||
|
|
|
||
|
|
export async function GET() {
|
||
|
|
const verse = DAILY_VERSE[Math.floor(Math.random() * DAILY_VERSE.length)];
|
||
|
|
|
||
|
|
return Response.json({
|
||
|
|
verse,
|
||
|
|
fetchedAt: new Date().toISOString(),
|
||
|
|
});
|
||
|
|
}
|