Adjusting the url for the api to use / instead of localhost