feat: Update API routes for LoRA management and enhance folder handling

This commit is contained in:
Will Miao
2025-07-23 17:26:06 +08:00
parent 2c6c9542dd
commit a834fc4b30
7 changed files with 27 additions and 41 deletions

View File

@@ -74,7 +74,7 @@ class MoveManager {
try {
// Fetch LoRA roots
const rootsResponse = await fetch('/api/lora-roots');
const rootsResponse = await fetch('/api/loras/roots');
if (!rootsResponse.ok) {
throw new Error('Failed to fetch LoRA roots');
}
@@ -96,7 +96,7 @@ class MoveManager {
}
// Fetch folders dynamically
const foldersResponse = await fetch('/api/folders');
const foldersResponse = await fetch('/api/loras/folders');
if (!foldersResponse.ok) {
throw new Error('Failed to fetch folders');
}
@@ -190,7 +190,7 @@ class MoveManager {
// Refresh folder tags after successful move
try {
const foldersResponse = await fetch('/api/folders');
const foldersResponse = await fetch('/api/loras/folders');
if (foldersResponse.ok) {
const foldersData = await foldersResponse.json();
updateFolderTags(foldersData.folders);