mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
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.
This commit is contained in:
@@ -61,7 +61,7 @@ class RecipeSharingService:
|
|||||||
|
|
||||||
safe_title = recipe.get("title", "").replace(" ", "_").lower()
|
safe_title = recipe.get("title", "").replace(" ", "_").lower()
|
||||||
filename = f"recipe_{safe_title}{ext}" if safe_title else f"recipe_{recipe_id}{ext}"
|
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})
|
return SharingResult({"success": True, "download_url": url_path, "filename": filename})
|
||||||
|
|
||||||
async def prepare_download(self, *, recipe_scanner, recipe_id: str) -> DownloadInfo:
|
async def prepare_download(self, *, recipe_scanner, recipe_id: str) -> DownloadInfo:
|
||||||
|
|||||||
Reference in New Issue
Block a user