From 3588b5f93c02addc32b914b886ce371ef4ff670b Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Tue, 16 Apr 2024 14:17:34 -0400 Subject: [PATCH] Remove extra slash in web requests --- JS-SDK/src/lib/web-request.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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