Add events "endpoint"
This commit is contained in:
3
functions/api/events.ts
Normal file
3
functions/api/events.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export async function onRequestGet(context: RequestContext) {
|
||||
return (await context.env.DATA.get("game_updates", { type: "json" })) ?? [];
|
||||
}
|
Reference in New Issue
Block a user