Use localhost for the api calls