I have a impolemented frontend in Node+Angular js and backend is running in Jetty exposing REST service.I want to send REST rquest from FE(Angular) to backend.when I am passing the complete URL to $http.get it works fine.However I want to mak it a configurable value so that any change in the URL/Port will not require me to change elsewhere apart from the configuration.Currently I am passing it as $http.post("http://localhost:8080/test/login/doStuff",dataObj)
However I want to pass it as $http.post("/test/login/doStuff",dataObj) and automatically it should append http://localhost:8080.Can someone help me on this?
Thanks