From 47da9949d9052894ca7b33dff523b5389d9e7b82 Mon Sep 17 00:00:00 2001 From: Will Miao <13051207myq@gmail.com> Date: Fri, 10 Oct 2025 21:46:56 +0800 Subject: [PATCH] feat: update recipe download URL path to include /lm prefix Update the download URL path in RecipeSharingService to include '/lm' prefix, aligning with the new API route structure for recipe sharing endpoints. --- py/services/recipes/sharing_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/services/recipes/sharing_service.py b/py/services/recipes/sharing_service.py index 47ab9718..a1af4f37 100644 --- a/py/services/recipes/sharing_service.py +++ b/py/services/recipes/sharing_service.py @@ -61,7 +61,7 @@ class RecipeSharingService: safe_title = recipe.get("title", "").replace(" ", "_").lower() filename = f"recipe_{safe_title}{ext}" if safe_title else f"recipe_{recipe_id}{ext}" - url_path = f"/api/recipe/{recipe_id}/share/download?t={timestamp}" + url_path = f"/api/lm/recipe/{recipe_id}/share/download?t={timestamp}" return SharingResult({"success": True, "download_url": url_path, "filename": filename}) async def prepare_download(self, *, recipe_scanner, recipe_id: str) -> DownloadInfo: