This commit is contained in:
2026-03-13 14:14:02 +00:00
parent 97a9f3fd9a
commit 55f7c9d296
2 changed files with 15 additions and 3 deletions
+4 -3
View File
@@ -147,7 +147,8 @@ ADMIN_HTML = """
background: white;
border-radius: 8px;
padding: 25px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
// Use direct relative paths for API calls
// No API_URL needed
}
.card h2 {
margin-bottom: 20px;
@@ -309,7 +310,7 @@ ADMIN_HTML = """
// Load bot versions on page load
function loadBots() {
fetch(API_URL + '/api/versions')
fetch('/api/versions')
.then(r => r.json())
.then(data => {
const list = document.getElementById('botList');
@@ -334,7 +335,7 @@ ADMIN_HTML = """
}
function editBot(name) {
fetch(API_URL + '/api/version/' + name)
fetch('/api/version/' + name)
.then(r => r.json())
.then(data => {
document.getElementById('botName').value = name;