Hi,

We're moving some apps onto a server and running them in docker containers. 
Each container listens on a different port, and we have an nginx proxy that 
translates more friendly urls into the 'real' ones. For example, it 
translates

example.com/app1

into

back-end-server.com:8080

The problem is, though, that when Angular tries to do an ajax call, it 
calls 

example.com/resource 

instead of 

example.com/app1/resource

I didn't write the app, the person who did has left the team. Looking at 
the javascript code, he defined an angular controller and then calls

dataGetter.dataList('entries', 'active')

which seems to be where the ajax magic happens. Is there a way to configure 
Angular so that it appends 'app1/' to the base url before doing the ajax 
call?

Here's the actual code:

http://plnkr.co/edit/hUGi7p1uI1TF92yYT85L?p=catalogue

thanks
Michael Davis
Ottawa

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to