changed the API route