|
|
@@ -50,19 +50,19 @@ class Connector {
|
|
50
|
50
|
async get(endpoint) {
|
|
51
|
51
|
return await this._tryFetch({
|
|
52
|
52
|
endpoint,
|
|
53
|
|
- header: this._makeHeader(this._verbs.get),
|
|
|
53
|
+ header: this._makeHeader({ method: this._verbs.get }),
|
|
54
|
54
|
})
|
|
55
|
55
|
}
|
|
56
|
56
|
async post(endpoint, payload = {}) {
|
|
57
|
57
|
return await this._tryFetch({
|
|
58
|
58
|
endpoint,
|
|
59
|
|
- header: this._makeHeader(this._verbs.post, payload),
|
|
|
59
|
+ header: this._makeHeader({ method: this._verbs.post, payload }),
|
|
60
|
60
|
})
|
|
61
|
61
|
}
|
|
62
|
62
|
async patch(endpoint, payload = {}) {
|
|
63
|
63
|
return await this._tryFetch({
|
|
64
|
64
|
endpoint,
|
|
65
|
|
- header: this._makeHeader(this._verbs.patch, payload),
|
|
|
65
|
+ header: this._makeHeader({ method: this._verbs.patch, payload }),
|
|
66
|
66
|
})
|
|
67
|
67
|
}
|
|
68
|
68
|
|