Remove path from API endpoint