I have inherited an AngularJS project, to integrate it with the RESTful server I have been working on. The client side code hits the relative urls($http.get('/relative/url')) of the REST API, and need to configure it hit the proper base url.
Judging from the docs, https://docs.angularjs.org/api/ng/service/$http, specifying the relative url like that is completely expected, however I can't seem to gather from the docs, or anywhere else, how one goes about specifying the base endpoint to use.