No that does not work
This commit is contained in:
parent
56370c027a
commit
9e971375cd
@ -1,3 +1,5 @@
|
|||||||
|
import { jsonResponse } from "../common.js";
|
||||||
|
|
||||||
export async function onRequestGet(context: RequestContext) {
|
export async function onRequestGet(context: RequestContext) {
|
||||||
return (await context.env.DATA.get("game_updates", { type: "json" })) ?? [];
|
return jsonResponse((await context.env.DATA.get("game_updates")) ?? "[]");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user