fix: remove leading front slash from HOST

This commit is contained in:
thecodrr
2020-08-24 11:27:21 +05:00
parent 2fcea10e43
commit 94e02adf67
3 changed files with 5 additions and 5 deletions

View File

@@ -124,7 +124,7 @@ async function authRequest(endpoint, data, auth = false, get = false) {
};
}
let response = await fetch(`${HOST}${endpoint}`, {
let response = await fetch(`${HOST}/${endpoint}`, {
method: get ? "GET" : "POST",
headers: { ...HEADERS, ...headers },
body: get ? undefined : JSON.stringify(data),