13 lines
348 B
TypeScript
13 lines
348 B
TypeScript
/**
|
|
* GET /api/admin/raffle
|
|
* Returns full raffle entry list for the admin dashboard.
|
|
*/
|
|
|
|
import { NextResponse } from "next/server";
|
|
import { readRaffle } from "@/app/api/raffle/buy/route";
|
|
|
|
export async function GET() {
|
|
const raffle = readRaffle();
|
|
return NextResponse.json({ ok: true, entries: raffle.entries, drawAt: raffle.drawAt });
|
|
}
|