The default behavior for Restangular is that it adds a leading "/" to the 
URL, so 'api/users' becomes '/api/users'.
To set the base URL for Restangular, 
see https://github.com/mgonto/restangular#setbaseurl.

Mike

On Friday, May 2, 2014 10:41:02 AM UTC-4, system wrote:
>
> Hi
>
> I have app at 'localhost/v123/'
>
> With $http.get('api/users') it works fine, but when I use Restangular, it 
> tries to access wrong url.
>
> Restangular.all('api/users').getList() is actually requesting 
> 'localhost/api/users'. I read that it is possible to specify base url, but 
> is it possible that angular/restangular find itself correct base url?
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to