mirror of
https://github.com/smittix/intercept.git
synced 2026-07-20 07:18:11 -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').textContent = 'STARTING...';
|
||||||
document.getElementById('airbandStatus').style.color = 'var(--accent-orange)';
|
document.getElementById('airbandStatus').style.color = 'var(--accent-orange)';
|
||||||
|
|
||||||
fetch('/spectrum/audio/start', {
|
fetch('/listening/audio/start', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
@@ -1912,7 +1912,7 @@ sudo make install</code>
|
|||||||
|
|
||||||
// Start browser audio playback
|
// Start browser audio playback
|
||||||
const audioPlayer = document.getElementById('airbandPlayer');
|
const audioPlayer = document.getElementById('airbandPlayer');
|
||||||
audioPlayer.src = '/spectrum/audio/stream?' + Date.now();
|
audioPlayer.src = '/listening/audio/stream?' + Date.now();
|
||||||
|
|
||||||
// Initialize visualizer before playing
|
// Initialize visualizer before playing
|
||||||
initAirbandVisualizer();
|
initAirbandVisualizer();
|
||||||
@@ -1946,7 +1946,7 @@ sudo make install</code>
|
|||||||
audioPlayer.pause();
|
audioPlayer.pause();
|
||||||
audioPlayer.src = '';
|
audioPlayer.src = '';
|
||||||
|
|
||||||
fetch('/spectrum/audio/stop', { method: 'POST' })
|
fetch('/listening/audio/stop', { method: 'POST' })
|
||||||
.then(r => r.json())
|
.then(r => r.json())
|
||||||
.then(() => {
|
.then(() => {
|
||||||
isAirbandPlaying = false;
|
isAirbandPlaying = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user