fix: 修正后台管理模板API路径为 /api/admin/xxx
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user