1axios({
2 method: 'post',
3 url: 'myurl',
4 data: bodyFormData,
5 headers: {'Content-Type': 'multipart/form-data' }
6 })
7 .then(function (response) {
8 //handle success
9 console.log(response);
10 })
11 .catch(function (response) {
12 //handle error
13 console.log(response);
14 });
1//assuming instance is your axios instance.
2
3instance.get("/test",{params:{key:value, key1:value1}}).then((data)=>{}).catch((error)=>{})
4
5//this will send a GET request to /test?key=value&key1=value1
6
7