feat(fans): add GET /api/artists/{id}/fans
Merged
AR
7mo ago+483+483+012345678901234567890123456789-32-32-01234567890123456789
Ports the legacy GET /api/fans?artist_account_id=... endpoint to GET /api/artists/{id}/fans with auth required. Response envelope (status, fans, pagination) is byte-identical to the legacy route.
Test plan
- Preview:
GET /api/artists/{id}/fans?page=1&limit=20with Bearer token returns expected envelope for artist with many fans, zero socials, and unknown id - Preview: ordering stable under
latest_engagement DESC NULLS LAST - Preview: no auth returns 401;
page=0/limit=-1returns 400