Create mod queue list skeleton

This commit is contained in:
regalijan 2023-10-19 16:49:09 -04:00
parent a83af19c6e
commit 5d2774fb2e
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -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",
},
});
}