From d8f29adeba6c7ea564c7ed2b6e086dbd956a13ea Mon Sep 17 00:00:00 2001 From: s8613 Date: Sun, 15 Jun 2025 19:03:50 +0200 Subject: [PATCH] Fixed one endpoint call to match ticket #60 dynamic changing host. --- project/frontend/src/util/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/frontend/src/util/api.ts b/project/frontend/src/util/api.ts index 095990c..65d3b2e 100644 --- a/project/frontend/src/util/api.ts +++ b/project/frontend/src/util/api.ts @@ -113,7 +113,7 @@ export const fetchKennzahlen = async (): Promise => { }; export async function fetchPitchBooks() { - const response = await fetch("http://localhost:5050/api/pitch_book/"); + const response = await fetch(`${API_HOST}/api/pitch_book/`); if (!response.ok) { throw new Error("Failed to fetch pitch books"); }