Backup-Verwaltung gefixt

Dieser Commit ist enthalten in:
2025-06-18 02:45:52 +02:00
Ursprung ee19487b37
Commit fd924a909f
2 geänderte Dateien mit 1 neuen und 38 gelöschten Zeilen

Datei anzeigen

@@ -1,38 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>API Test</title>
</head>
<body>
<h1>Test Customer Licenses API</h1>
<button onclick="testAPI()">Test API</button>
<pre id="result"></pre>
<script>
function testAPI() {
// Test mit einem bekannten Kunden
fetch('/api/customer/1/licenses')
.then(response => {
console.log('Response status:', response.status);
console.log('Response headers:', response.headers);
return response.text();
})
.then(text => {
console.log('Raw response:', text);
try {
const data = JSON.parse(text);
console.log('Parsed data:', data);
document.getElementById('result').textContent = JSON.stringify(data, null, 2);
} catch (e) {
console.error('Parse error:', e);
document.getElementById('result').textContent = 'Parse error: ' + e + '\n\nRaw response:\n' + text;
}
})
.catch(error => {
console.error('Fetch error:', error);
document.getElementById('result').textContent = 'Fetch error: ' + error;
});
}
</script>
</body>
</html>