init2 server

This commit is contained in:
derlole
2025-04-14 15:39:04 +00:00
parent 0bb706af99
commit 7d7f9d8e9b
3 changed files with 8 additions and 9 deletions

View File

@@ -3,7 +3,7 @@ document.getElementById('befehlForm').addEventListener('submit', function(event)
const befehl = document.getElementById('befehl').value;
fetch(`/send?befehl=${encodeURIComponent(befehl)}`)
fetch(`/unsecure/send?befehl=${encodeURIComponent(befehl)}`)
.then(response => response.text())
.then(text => {
document.getElementById('status').textContent = text;
@@ -11,4 +11,4 @@ document.getElementById('befehlForm').addEventListener('submit', function(event)
.catch(err => {
document.getElementById('status').textContent = 'Fehler beim Senden.';
});
});
});