801e6a050b
- Documentation archivée et réorganisée - Backend: Ajout tests, migrations, library service, rate limiting - Frontend: Suppression Flutter, focus sur interface web HTML/JS - Tailwind CSS ajouté pour le style - Améliorations UX et corrections bugs Generated with [Claude Code](https://claude.com/claude-code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
41 lines
1.3 KiB
HTML
41 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Test AudiOhm</title>
|
|
</head>
|
|
<body>
|
|
<h1>Test API</h1>
|
|
<button onclick="testTrending()">Test Trending</button>
|
|
<button onclick="testStream()">Test Stream</button>
|
|
<pre id="output"></pre>
|
|
|
|
<script>
|
|
async function testTrending() {
|
|
const output = document.getElementById('output');
|
|
output.textContent = 'Testing trending...';
|
|
|
|
try {
|
|
const response = await fetch('/api/v1/music/trending?limit=1');
|
|
const data = await response.json();
|
|
output.textContent = 'Trending Response:\n' + JSON.stringify(data, null, 2);
|
|
} catch (error) {
|
|
output.textContent = 'Error: ' + error.message;
|
|
}
|
|
}
|
|
|
|
async function testStream() {
|
|
const output = document.getElementById('output');
|
|
output.textContent = 'Testing stream...';
|
|
|
|
try {
|
|
const response = await fetch('/api/v1/music/youtube/NqDGkdDh8WE/stream');
|
|
const data = await response.json();
|
|
output.textContent = 'Stream Response:\n' + JSON.stringify(data, null, 2);
|
|
} catch (error) {
|
|
output.textContent = 'Error: ' + error.message;
|
|
}
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|