mirror of
https://github.com/smittix/intercept.git
synced 2026-04-25 15:20:00 -07:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user