now angular can talk to the backend through the api endpoint;