CompactRecipeRestResource.ts: use post instead of get with body

This commit is contained in:
araemer 2026-02-27 20:15:28 +01:00
parent 2fbb1523fd
commit 4b742264f4
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -27,6 +27,7 @@ export class RecipeRepository extends AbstractRepository<RecipeEntity> {
/**
* 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