Fix APIClient

This commit is contained in:
2020-02-25 10:15:59 +01:00
parent 88e8a8b8a3
commit 8ba45f84cb
2 changed files with 3 additions and 3 deletions

View File

@ -38,13 +38,13 @@ export class APIClient {
}
_callAPI(path, body, method='GET') {
return fetch(baseURL + path, {
return fetch(this.baseURL + path, {
method,
headers: {
'Content-Type': 'application/json',
},
mode: 'cors',
credentials: true,
credentials: 'include',
body: JSON.stringify(body),
})
.then(res => res.json())