dontread
Recommended routes:
GET /admin/reports
Query params: status, search, tag, page, limit Returns the report list for the dashboard tabs.
GET /admin/reports/:id Returns one report for detail view or validation before updating.
PATCH /admin/reports/:id
Used for status changes and admin notes. Body can include status and adminNote. POST /admin/reports/:id/queue
Moves an unhandled report into queue and stores the admin comment. This matches the “Queue + Add Comment” action in script.js:528. POST /admin/reports/:id/handled
Marks a queued report as handled. This matches the “Mark as Handled” action in script.js:549. POST /admin/reports/:id/return-queue Sends a handled report back to queue. This matches the “Return to Queue” action in script.js:571. Optional but useful:
GET /admin/reports/summary Returns counts for unhandled, queued, handled, weekly total, today total, and handled ratio. This supports the stats shown in