I'm using vues and I'm doing ajax requests via vue-resources. With vue-resources it is possible to make requests like this:
this.$http.get('/someUrl').then(response => {
// get body data
this.someData = response.body;
}, response => {
// error callback
});
I need to pass the http method via param something like:
var method = "PATCH"
this.$http(url, data, method)