diff --git a/functions/api/mod-queue/list.ts b/functions/api/mod-queue/list.ts new file mode 100644 index 0000000..6f97295 --- /dev/null +++ b/functions/api/mod-queue/list.ts @@ -0,0 +1,12 @@ +export async function onRequestGet(context: RequestContext) { + const { searchParams } = new URL(context.request.url); + const entryType = searchParams.get("type") ?? "all"; + const showClosed = searchParams.get("showClosed") === "true"; + const items: { type: string; data: { [k: string]: any } }[] = []; + + return new Response(JSON.stringify(items), { + headers: { + "content-type": "application/json", + }, + }); +}