The senario is that I just want to do a simple login using
var test = {login: 'testuser', password: 'asd'};
Restangular.one('/auth/login').post(test);
it makes a request to "auth/login/[object%20Object]" and I get a 404?
using this code it works just fine:
xmlhttp.send('{"login":"testuser", "password":"asd"}’);
Any ideas?
You can use
customPOST(test)
and the data should be passed appropriately.