add endpoint to get elections