From 4dc5060a7599ef9cbfc70b7eaf0fb18b3a77f045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20W=C3=A4nqvist?= Date: Mon, 28 Oct 2024 16:09:51 +0100 Subject: [PATCH] fix: api adress --- src/services/dataService.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/services/dataService.ts b/src/services/dataService.ts index 401ecb4..fcf6cd8 100644 --- a/src/services/dataService.ts +++ b/src/services/dataService.ts @@ -6,7 +6,10 @@ import { IDroid } from "./../common/IDroid"; import { ILegend } from "../common/ILegend"; // const apiBaseUrl = "http://localhost:5000"; +// const dataApiBaseUrl = "/data-api/api/"; + const apiBaseUrl = "http://localhost:7071"; +const dataApiBaseUrl = "/api/"; export class DataService { public legends: ILegend[] = []; @@ -106,7 +109,7 @@ export class DataService { private getBaseUrl() { if (window.location.hostname.includes("localhost")) { return apiBaseUrl + "/api/"; - } else return window.origin + "/data-api/api/"; + } else return window.origin + dataApiBaseUrl; } }