I am a starter in angularjs , am trying to do a log in form ,when user submits the form i am connection to a REST API url
http://XXX/XXX/index.php/report/login/format/json
when configuiring the url in PostMan rest client it works fine.!
But while configuring this url in angularjs as shown below and registering as a service
User = $resource('http://xxx/xxx/index.php/report/login/format/json',{},
{
query: { method: 'GET', isArray: true },
create: { method: 'POST' }
});
User.create({email: user.email,password: user.password});
also tried enabling CORS in server side of no use.
i get a 404 error and values are not posted.
Any help will be much appreciated