change localhost to api.localhost