Modify to correct index endpoint.