Create mod queue list skeleton
This commit is contained in:
parent
a83af19c6e
commit
5d2774fb2e
12
functions/api/mod-queue/list.ts
Normal file
12
functions/api/mod-queue/list.ts
Normal 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",
|
||||
},
|
||||
});
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user