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

This commit is contained in:
Will Miao
2025-07-24 19:56:18 +08:00
parent f15c6f33f9
commit 692796db46
10 changed files with 21 additions and 21 deletions

View File

@@ -147,7 +147,7 @@ export function addLorasWidget(node, name, opts, callback) {
this.currentLora = loraName;
// 获取预览URL
const response = await api.fetchApi(`/lora-preview-url?name=${encodeURIComponent(loraName)}`, {
const response = await api.fetchApi(`/loras/preview-url?name=${encodeURIComponent(loraName)}`, {
method: 'GET'
});
@@ -472,7 +472,7 @@ export function addLorasWidget(node, name, opts, callback) {
try {
// Get Civitai URL from API
const response = await api.fetchApi(`/lora-civitai-url?name=${encodeURIComponent(loraName)}`, {
const response = await api.fetchApi(`/loras/civitai-url?name=${encodeURIComponent(loraName)}`, {
method: 'GET'
});