I want to access to my services from RESTful API. I have added this code in angularJS. But it is returning failure always. I didn't understand why. Any help?
$http({ method: 'GET', url: 'http://localhost:3000/profiles/someUser'}).
success(function (data, status, headers, config) {
alert("success")
$scope.items = data;
}).
error(function (data, status, headers, config) {
alert("failure")
});
I have profiles/:username service in my RESTful API