Update StrapiClient to modify image URL handling and add image route
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user