mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
fix: remove leading front slash from HOST
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user