Add CSV export endpoint, though needs security added.