fix: 修正后台管理模板API路径为 /api/admin/xxx

This commit is contained in:
2026-04-13 11:23:56 +08:00
parent 34afe96055
commit 9d35179210
7 changed files with 13 additions and 13 deletions

View File

@@ -178,7 +178,7 @@
<script>
async function loadStats() {
const res = await fetch('/api/stats');
const res = await fetch('/api/admin/stats');
const data = await res.json();
document.getElementById('stat-requests').textContent = data.total_requests;
@@ -194,7 +194,7 @@
}
async function loadProviders() {
const res = await fetch('/api/providers');
const res = await fetch('/api/admin/providers');
const providers = await res.json();
const container = document.getElementById('providerList');