mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-21 22:13:31 -07:00
update tag route
This commit is contained in:
parent
d5a340bde1
commit
6752bce689
1 changed files with 9 additions and 0 deletions
|
@ -29,6 +29,15 @@ async def create_recipe_tag(
|
|||
return db.tags.create(session, tag.dict())
|
||||
|
||||
|
||||
@router.put("")
|
||||
async def update_recipe_tag(
|
||||
tag: TagIn, session: Session = Depends(generate_session), current_user=Depends(get_current_user)
|
||||
):
|
||||
""" Creates a Tag in the database """
|
||||
|
||||
return "NOT IMPLEMENTED"
|
||||
|
||||
|
||||
@router.get("/{tag}", response_model=RecipeTagResponse)
|
||||
def get_all_recipes_by_tag(tag: str, session: Session = Depends(generate_session)):
|
||||
""" Returns a list of recipes associated with the provided tag. """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue