Fix aircraft dashboard audio endpoints (404 error)

Changed /spectrum/audio/* to /listening/audio/* to match the
actual listening_post blueprint URL prefix.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-06 21:37:36 +00:00
parent b55100d5c3
commit bb24bdb06c

View File

@@ -1894,7 +1894,7 @@ sudo make install</code>
document.getElementById('airbandStatus').textContent = 'STARTING...';
document.getElementById('airbandStatus').style.color = 'var(--accent-orange)';
fetch('/spectrum/audio/start', {
fetch('/listening/audio/start', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
@@ -1912,7 +1912,7 @@ sudo make install</code>
// Start browser audio playback
const audioPlayer = document.getElementById('airbandPlayer');
audioPlayer.src = '/spectrum/audio/stream?' + Date.now();
audioPlayer.src = '/listening/audio/stream?' + Date.now();
// Initialize visualizer before playing
initAirbandVisualizer();
@@ -1946,7 +1946,7 @@ sudo make install</code>
audioPlayer.pause();
audioPlayer.src = '';
fetch('/spectrum/audio/stop', { method: 'POST' })
fetch('/listening/audio/stop', { method: 'POST' })
.then(r => r.json())
.then(() => {
isAirbandPlaying = false;