Fixed one endpoint call to match ticket #60 dynamic changing host.

pull/67/head
s8613 2025-06-15 19:03:50 +02:00
parent 7949b81558
commit d8f29adeba
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ export const fetchKennzahlen = async (): Promise<Kennzahl[]> => {
};
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");
}