Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Create mod queue list skeleton
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent a83af19 commit 5d2774f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions 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",
},
});
}

0 comments on commit 5d2774f

Please sign in to comment.