We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57423a5 commit 37c61d5Copy full SHA for 37c61d5
src/api.ts
@@ -25,15 +25,7 @@ export class Api {
25
...requestObject.body,
26
auth_key: this.token,
27
}
28
- let url = `${this.baseUrl}${requestObject.url}`
29
-
30
- if (this.provider !== 'deepl') {
31
- if (['GET', 'HEAD', 'DELETE'].includes(requestObject.method)) {
32
- body.token = body.auth_key
33
- } else {
34
- url = `${url}?token=${this.token}`
35
- }
36
+ const url = `${this.baseUrl}${requestObject.url}`
37
38
return await $http.request({
39
...requestObject,
0 commit comments