refactor: Update API endpoints to include 'loras' prefix for consistency

This commit is contained in:
Will Miao
2025-07-24 19:56:55 +08:00
parent f15c6f33f9
commit 692796db46
10 changed files with 21 additions and 21 deletions
+2 -2
View File
@@ -831,9 +831,9 @@ class RecipeModal {
// Determine which endpoint to use based on available data
if (lora.modelVersionId) {
endpoint = `/api/civitai/model/version/${lora.modelVersionId}`;
endpoint = `/api/loras/civitai/model/version/${lora.modelVersionId}`;
} else if (lora.hash) {
endpoint = `/api/civitai/model/hash/${lora.hash}`;
endpoint = `/api/loras/civitai/model/hash/${lora.hash}`;
} else {
console.error("Missing both hash and modelVersionId for lora:", lora);
return null;