How can I pass query paramenters using Axios such that I can get the query in my backend code using req.query.email. This doesn't seem to work:
this.$http.post(this.$BASE_URL + 'agents/auth/create-password', {
data: { password: this.password },
params: {
email,
},
})
.then((res) => {
console.log(res);
})
.catch((error) => {
console.log(error);
})
What I'm getting from my api is req.body.data and req.body.params.
this.$httpI don't think you are using axios instead you are using vue-resource. Please read github.com/pagekit/vue-resource/blob/master/docs/http.md.this.$httpwhich wrap axios or you just useVue.prototype.$http = axios?