Update API spec

This commit is contained in:
2024-10-03 14:28:22 +08:00
parent a81cf63206
commit def4cf3d93
3 changed files with 392 additions and 8 deletions

View File

@@ -20,8 +20,9 @@ export const handler: Handlers = {
) {
return return_error(403, "Permission denied.");
}
const gid = decodeURIComponent(ctx.params.gids);
const gids = new Set(
ctx.params.gids.split(",").map((v) => parseBigInt(v)).filter((v) =>
gid.split(",").map((v) => parseBigInt(v)).filter((v) =>
!isNumNaN(v)
).map((v) => BigInt(v)),
);