From 8f810b4f5027bd1e61f60458d212995a094d6bf3 Mon Sep 17 00:00:00 2001 From: hay-kot Date: Tue, 9 Feb 2021 15:33:37 -0900 Subject: [PATCH] async file response --- mealie/routes/recipe/recipe_crud_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mealie/routes/recipe/recipe_crud_routes.py b/mealie/routes/recipe/recipe_crud_routes.py index 80681e71e..f42bf0f56 100644 --- a/mealie/routes/recipe/recipe_crud_routes.py +++ b/mealie/routes/recipe/recipe_crud_routes.py @@ -66,7 +66,7 @@ def delete_recipe(recipe_slug: str, db: Session = Depends(generate_session)): @router.get("/{recipe_slug}/image") -def get_recipe_img(recipe_slug: str): +async def get_recipe_img(recipe_slug: str): """ Takes in a recipe slug, returns the static image """ recipe_image = read_image(recipe_slug)