diff --git a/JS-SDK/src/lib/web-request.ts b/JS-SDK/src/lib/web-request.ts index aa9a6ec..af4a7c6 100644 --- a/JS-SDK/src/lib/web-request.ts +++ b/JS-SDK/src/lib/web-request.ts @@ -30,9 +30,7 @@ export class WebRequest { */ execute = (): Promise => new Promise(async (resolve, reject) => { - const response: Response = await fetch( - `${API_ENDPOINT}/${this.endpoint}` - ); // Send the request + const response: Response = await fetch(`${API_ENDPOINT}${this.endpoint}`); // Send the request const contentType: string | null = response.headers.get("Content-Type"); // Get the response content type // Parse as Json