add course index endpoint