1.2.1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user