Add types and permissions to mod queue list endpoint

This commit is contained in:
regalijan 2023-10-19 16:49:12 -04:00
parent b124b6c631
commit 9cd66cdcf4
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -3,6 +3,17 @@ export async function onRequestGet(context: RequestContext) {
const entryType = searchParams.get("type") ?? "all";
const showClosed = searchParams.get("showClosed") === "true";
const items: { type: string; data: { [k: string]: any } }[] = [];
const types = {
appeal: `appeal_`,
gma: `gameappeal_`,
report: `report_`,
};
const permissions = {
appeal: [1 << 0, 1 << 1],
gma: [1 << 5],
report: [1 << 5],
};
const { current_user: currentUser } = context.data;
return new Response(JSON.stringify(items), {
headers: {