Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add types and permissions to mod queue list endpoint
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent b124b6c commit 9cd66cd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions functions/api/mod-queue/list.ts
Expand Up @@ -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: {
Expand Down

0 comments on commit 9cd66cd

Please sign in to comment.