Update StrapiClient to modify image URL handling and add image route

This commit is contained in:
Schneider Roland
2025-03-02 21:01:58 +01:00
parent a735471eb1
commit ae8c22b560
2 changed files with 25 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ class StrapiClient{
constructor(private strapiUrl: string = "http://localhost:1337") {
}
public getImageUrl(imagePath: string){
return this.strapiUrl + imagePath;
return '/image/'+ imagePath;
}
public async httpGet(path: string){
return await httpClient.httpGet(this.strapiUrl + path);