mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-25 08:09:41 +02:00
feat: duplicate recipes (#1750)
* feature/frontend: Add duplicate button to recipe * feature/backend: Add recipe duplication endpoint * feature/frontend: add duplication API call * Regenerate API docs * Fix linter errors * Fix backend linter error * Move recipe duplication logic to recipe service * Add test for recipe duplication * Improve recipe ingredients copy test * generate types * import type Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
This commit is contained in:
parent
e73a72959c
commit
33dffccaa5
18 changed files with 258 additions and 25 deletions
|
@ -349,6 +349,11 @@ def recipes_slug_comments(slug):
|
|||
return f"{prefix}/recipes/{slug}/comments"
|
||||
|
||||
|
||||
def recipes_slug_duplicate(slug):
|
||||
"""`/api/recipes/{slug}/duplicate`"""
|
||||
return f"{prefix}/recipes/{slug}/duplicate"
|
||||
|
||||
|
||||
def recipes_slug_exports(slug):
|
||||
"""`/api/recipes/{slug}/exports`"""
|
||||
return f"{prefix}/recipes/{slug}/exports"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue