I'm trying to create an application that uses rest api. The backend is on my local machine, so I've got this
127.0.0.1 api.mail.my
in /etc/hosts
In the application I've got the following:
var messageResource = $resource('http://api.mail.my/messages/:folder/:id');
which works ok, when accessing this app via browser.
But how do I make this app to access the resource, when it's being run in an emulator (cordova emulate android
)?