Skip to content

five-on-it / apps/api/src/takedowns

apps/api/src/takedowns ​

The moderators' routes (TECHNICAL_SPECS §9.9): the report queue, takedowns and restorations, the featured flag, dismissing a report, and the audit log that keeps every one of those decisions. A moderator is an account FOI_MODERATORS names; anyone else gets 403.

RouteWhat
GET /moderation/reports?state=open|actioned|dismissed|allThe reports, newest first (open ones by default), each with its game's title.
POST /moderation/games/:id/takedown {note?}Takes a game down: unlisted, its rooms take no new players; its open reports are actioned.
POST /moderation/games/:id/restore {note?}Puts a game taken down back.
PUT /moderation/games/:id/featured {featured, note?}Features a game, or stops featuring it.
POST /moderation/reports/:id/dismiss {note?}Closes an open report with no action.
POST /moderation/reports/:id/uphold {note?}Upholds an open report of a player: actioned, their conduct lowered (respect-routes.ts).
GET /moderation/audit?limit=The decisions, newest first (100 by default, at most 500).

Functions ​