changed index and rest url for thorat