I'd rather the former, and leave out touching the frontend from the backend.