From 559767b6814894b7693d7e234a9fee46caca48a4 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Wed, 25 Oct 2023 22:15:06 -0400 Subject: [PATCH] Add events "endpoint" --- functions/api/events.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 functions/api/events.ts diff --git a/functions/api/events.ts b/functions/api/events.ts new file mode 100644 index 0000000..ab191f5 --- /dev/null +++ b/functions/api/events.ts @@ -0,0 +1,3 @@ +export async function onRequestGet(context: RequestContext) { + return (await context.env.DATA.get("game_updates", { type: "json" })) ?? []; +}