CompactRecipeRestResource.ts: use post instead of get with body
This commit is contained in:
parent
2fbb1523fd
commit
4b742264f4
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue