update tag route

This commit is contained in:
hay-kot 2021-04-25 13:48:49 -08:00
commit 6752bce689

View file

@ -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. """