|
@@ -42,9 +42,9 @@ class ApiRequests {
|
42
|
42
|
})
|
43
|
43
|
|
44
|
44
|
case "POST":
|
45
|
|
- axios.post(this.base_url + endpoint), body, {
|
|
45
|
+ axios.post(this.base_url + endpoint, body, {
|
46
|
46
|
headers: opt
|
47
|
|
- }
|
|
47
|
+ })
|
48
|
48
|
.then(res => {
|
49
|
49
|
const response = res.data;
|
50
|
50
|
return response;
|
|
@@ -54,9 +54,9 @@ class ApiRequests {
|
54
|
54
|
})
|
55
|
55
|
|
56
|
56
|
case "PATCH":
|
57
|
|
- axios.patch(this.base_url + endpoint), body, {
|
|
57
|
+ axios.patch(this.base_url + endpoint, body, {
|
58
|
58
|
headers: opt
|
59
|
|
- }
|
|
59
|
+ })
|
60
|
60
|
.then(res => {
|
61
|
61
|
const response = res.data;
|
62
|
62
|
return response;
|
|
@@ -67,9 +67,9 @@ class ApiRequests {
|
67
|
67
|
|
68
|
68
|
|
69
|
69
|
case "DELETE":
|
70
|
|
- axios.delete(this.base_url + endpoint), {
|
|
70
|
+ axios.delete(this.base_url + endpoint, {
|
71
|
71
|
headers: opt
|
72
|
|
- }
|
|
72
|
+ })
|
73
|
73
|
.then(res => {
|
74
|
74
|
const response = res;
|
75
|
75
|
return response;
|