modified the api url for route.