don't hardcode the endpoints. write them as constants in some place.