Fixed one endpoint call to match ticket #60 dynamic changing host.
parent
7949b81558
commit
d8f29adeba
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue