Add events "endpoint"

This commit is contained in:
Regalijan 2023-10-25 22:15:06 -04:00
parent d491c3b453
commit 559767b681
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

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" })) ?? [];
}