From a47f43bda2168bbd15e6820d7123269c36e83f1b Mon Sep 17 00:00:00 2001 From: LuckMeelo Date: Fri, 13 Dec 2024 12:24:32 +0100 Subject: [PATCH] fix: changed request type POST on recipes and ingredients generation to GET --- src/services/recipe/recipes.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/recipe/recipes.controller.ts b/src/services/recipe/recipes.controller.ts index f50198e..afab341 100644 --- a/src/services/recipe/recipes.controller.ts +++ b/src/services/recipe/recipes.controller.ts @@ -103,7 +103,7 @@ export class RecipesController { @ApiBody({ type: [String] }) @ApiOperation({ summary: 'Find all ingredients based on many recipes' }) - @Post('generate-ingredients') + @Get('generate-ingredients') async generateIngredientsList( @Body() recipeIds: string[], ): Promise { @@ -136,7 +136,7 @@ export class RecipesController { }, }) @ApiOperation({ summary: 'Generate a list of recipes based on budget' }) - @Post('generate') + @Get('generate') async generateRecipes(@Body('budget') budget: number): Promise { try { return await this.recipesService.generateRecipesFromBudget(budget);