From 9d35179210b7172d51ab886058e3df414ee4242c Mon Sep 17 00:00:00 2001 From: hubian <908234780@qq.com> Date: Mon, 13 Apr 2026 11:23:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=A8=A1=E6=9D=BFAPI=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E4=B8=BA=20/api/admin/xxx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/auto-profiles.html | 4 ++-- templates/chat.html | 6 +++--- templates/config.html | 2 +- templates/index.html | 4 ++-- templates/logs.html | 2 +- templates/models.html | 2 +- templates/providers.html | 6 +++--- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/templates/auto-profiles.html b/templates/auto-profiles.html index 5ebeb43..2ea6254 100644 --- a/templates/auto-profiles.html +++ b/templates/auto-profiles.html @@ -142,8 +142,8 @@ // 加载数据 async function loadData() { const [providersRes, profilesRes] = await Promise.all([ - fetch('/api/providers'), - fetch('/api/auto-profiles') + fetch('/api/admin/providers'), + fetch('/api/admin/auto-profiles') ]); providers = await providersRes.json(); diff --git a/templates/chat.html b/templates/chat.html index f49f4c3..bb1a843 100644 --- a/templates/chat.html +++ b/templates/chat.html @@ -142,7 +142,7 @@ // 加载模型列表 async function loadModels() { - const res = await fetch('/api/chat/models'); + const res = await fetch('/api/admin/chat/models'); models = await res.json(); } @@ -156,7 +156,7 @@ // 加载对话列表 async function loadChats() { - const res = await fetch('/api/chat/list'); + const res = await fetch('/api/admin/chat/list'); chats = await res.json(); renderChatList(); } @@ -292,7 +292,7 @@ scrollToBottom(); try { - const res = await fetch('/api/chat/send', { + const res = await fetch('/api/admin/chat/send', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ diff --git a/templates/config.html b/templates/config.html index 0674677..b955888 100644 --- a/templates/config.html +++ b/templates/config.html @@ -57,7 +57,7 @@