set up rails API for stories index