Add events "endpoint"

This commit is contained in:
2023-10-25 22:15:06 -04:00
parent d491c3b453
commit 559767b681

3
functions/api/events.ts Normal file
View File

@ -0,0 +1,3 @@
export async function onRequestGet(context: RequestContext) {
return (await context.env.DATA.get("game_updates", { type: "json" })) ?? [];
}