diff --git a/client/src/app/core/services/recipe.service.ts b/client/src/app/core/services/recipe.service.ts index 21abd16..e6d5c53 100644 --- a/client/src/app/core/services/recipe.service.ts +++ b/client/src/app/core/services/recipe.service.ts @@ -60,8 +60,28 @@ export class RecipeService { return 'coffeethai02_580.json'; } - getRecipesById(id: string): Observable { - return this._httpClient.get(environment.api + '/recipes/' + id, { + getRecipesById(id: string): Observable<{ + recipe: Recipe01; + recipeMetaData: { + productCode: string; + name: string; + otherName: string; + description: string; + otherDescription: string; + picture: string; + }; + }> { + return this._httpClient.get<{ + recipe: Recipe01; + recipeMetaData: { + productCode: string; + name: string; + otherName: string; + description: string; + otherDescription: string; + picture: string; + }; + }>(environment.api + '/recipes/' + id, { withCredentials: true, responseType: 'json', }); diff --git a/client/src/app/shared/modal/recipe-details/recipe-modal.component.html b/client/src/app/shared/modal/recipe-details/recipe-modal.component.html index 7ef38fb..568468b 100644 --- a/client/src/app/shared/modal/recipe-details/recipe-modal.component.html +++ b/client/src/app/shared/modal/recipe-details/recipe-modal.component.html @@ -24,7 +24,11 @@