Skip to content

Commit

Permalink
fix: api adress
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Wänqvist committed Oct 28, 2024
1 parent a317673 commit 4dc5060
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/services/dataService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [];
Expand Down Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 4dc5060

Please sign in to comment.