Skip to content

Commit

Permalink
fix: changed request type POST on recipes and ingredients generation …
Browse files Browse the repository at this point in the history
…to GET
  • Loading branch information
LuckMeelo committed Dec 13, 2024
1 parent 3610043 commit a47f43b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/recipe/recipes.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<IngredientDetailDtoWithPrice[]> {
Expand Down Expand Up @@ -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<Recipe[]> {
try {
return await this.recipesService.generateRecipesFromBudget(budget);
Expand Down

0 comments on commit a47f43b

Please sign in to comment.