Replace remote with local repo
This commit is contained in:
12
app/api/admin/raffle/route.ts
Normal file
12
app/api/admin/raffle/route.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* 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 });
|
||||
}
|
||||
Reference in New Issue
Block a user