Restangular for AngularJS has a lot of useful functions, but one issue I have is the inability to easily pass a full URL to it. While I understand the advantages of using .one('something','someparam'), my problem lies in having to split() various URL strings before using Restangular.
In addition, although there is the baseURL function, the URLs I receive do not always come from the same base path.
For instance, some examples of the URLs I might receive include:
/us/en/product/17726
/us/es/products
/us/es/product/991A0
/ca/en/accounts
All I have are these strings...