Can I pass the http method via parameter with vue-resource?

0

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)
    
asked by anonymous 09.04.2017 / 22:47

1 answer

0

You can use Custom Actions to solve your problem.

    
25.04.2017 / 19:40