Files
warmbly/internal/api/handler
Matt 4b7a0be93d feat(admin): read-only organization endpoints
Wire three GET endpoints behind the existing admin middleware so the
admin app can browse workspaces alongside users:

  GET /admin/organizations              list with q/cursor/limit/sort
  GET /admin/organizations/:id          detail + plan/sub + limits + counts
  GET /admin/organizations/:id/members  full member list with joined users

The list query inlines member/email-account/campaign/active-campaign
counts via subqueries so the table can render usage without an extra
fetch per row. Detail layers GetOrganizationLimits + GetOrganizationCounts
on top of the list shape, ensuring admin sees the same numbers the in-app
limit checks enforce.

Gated on AdminPermViewUsers for now since orgs are tightly coupled to
user admin context today; a dedicated ViewOrganizations/ManageOrganizations
pair will land alongside the write paths (per-org overrides, ban scope)
in the next slice.
2026-05-28 08:39:13 +02:00
..
2026-01-17 14:11:14 +00:00
2026-01-29 05:59:04 +01:00
2026-01-29 05:59:04 +01:00
2026-01-29 05:59:04 +01:00
2026-01-26 16:04:42 +01:00
2026-02-14 05:38:27 +01:00
2026-01-29 05:59:04 +01:00
2026-01-17 14:11:14 +00:00
2026-01-17 14:11:14 +00:00