when I get a request from a url,like this:
$http({
method: 'GET',
url:'http://mooc-lms.dev.web.nd/v0.3/users/login'
}).success(function(data, status, headers, config) {
//code
});
But the error I get is:
GET http://mooc-lms.dev.web.nd/v0.3/users/login 405 (Method Not Allowed)
However,if I change the method from "GET" to "POST",the error is:
POST http://mooc-lms.dev.web.nd/v0.3/users/login 415 (Unsupported Media Type)
What's the problem?Is there something wrong with the url(http://mooc-lms.dev.web.nd/v0.3/users/login)? I find '"message":"Request method 'GET' not supported"' in the url.
GETmethod implement on this url.