Add types and permissions to mod queue list endpoint
This commit is contained in:
parent
b124b6c631
commit
9cd66cdcf4
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user