Remove extra slash in web requests

This commit is contained in:
Braydon 2024-04-16 14:17:34 -04:00
parent a90299fae7
commit 3588b5f93c

@ -30,9 +30,7 @@ export class WebRequest {
*/
execute = <T>(): Promise<T> =>
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