The My AngularJS application makes calls to an API that is currently hosted on one service but previously hosted on another, and is likely to be hosted somewhere else in the near future.
The url is constantly changing. For example, from
myfirst.heroku.com/app/user/mike/profile
to
mysecond.bluemix.com/app/user/mike/profile
and etc.
Instead of changing the URL in every place every time, I want to just change the part to /app...
In an Angular app, the best way to do this?
NOTE. . Many of the URLs that I use throughout the application are in modules, which are added as dependencies to my main application. Therefore, Module1 and Module2 use URLs in their controllers and resources and then are included in MainApp . Therefore, a good solution for me should be available for all dependent applications. Is it possible.
source share