title: How do I call an API in another project but same solution without hard-coding the url?
body: <p>I have two projects. One for my front-end angular code. Another for Web API. When I'm in the front-end project, I want to make a call to an API in my other project. </p>
  
  <p>The Web API tutorials I have seen show a relative url involving /api such as this:
      $http.get("/api/trivia")</p>
  
  <p>That works great if the javascript is in the same project as Web API, but it's not for my Solution. </p>
  
  <p>I can hard-code the url to my API's localhost port and it works fine, but of course that won't work when I deploy the app to Azure. How should I be handling these urls?</p>
  
  <p>Thank you.</p>