diff --git a/src/api/endpoints/CompactRecipeRestResource.ts b/src/api/endpoints/CompactRecipeRestResource.ts index ade518f..a8bc9ea 100644 --- a/src/api/endpoints/CompactRecipeRestResource.ts +++ b/src/api/endpoints/CompactRecipeRestResource.ts @@ -21,7 +21,7 @@ const compactRecipeHandler = new CompactRecipeHandler(recipeRepository, compactR /** * Load recipe header data of all recipes matching the filter. If no filter is given, all recipes are returned. */ -router.get( +router.post( "/list-by-filter", asyncHandler(async (req , res) => { const request : CompactRecipeFilterRequest = req.body; diff --git a/src/repositories/RecipeRepository.ts b/src/repositories/RecipeRepository.ts index fc13a3e..d4ad8e6 100644 --- a/src/repositories/RecipeRepository.ts +++ b/src/repositories/RecipeRepository.ts @@ -27,6 +27,7 @@ export class RecipeRepository extends AbstractRepository { /** * Find all recipes matching the search. Currently, it only searches on the title. Fetches only recipe header data but no relations. + * @todo Full text search? * @param searchString String to search for. Might be undefined if no search is applied (all recipes or filter for tags only) * @param tagIdList List of tags. The recipe must have all the tags to be taken into account. May be undefined if not filtering for tags * @returns List of recipe entities matching the filter criteria