Kaynağa Gözat

Fix skip pattern endpoint mismatch

- Frontend was calling /skip but backend endpoint is /skip_pattern
- Add /skip_pattern to vite proxy configuration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
tuanchris 3 hafta önce
ebeveyn
işleme
dec7c7159f

+ 1 - 1
frontend/src/components/NowPlayingBar.tsx

@@ -133,7 +133,7 @@ export function NowPlayingBar({ isLogsOpen = false, isVisible, onClose }: NowPla
 
   const handleSkip = async () => {
     try {
-      const response = await fetch('/skip', { method: 'POST' })
+      const response = await fetch('/skip_pattern', { method: 'POST' })
       if (!response.ok) throw new Error()
       toast.success('Skipping to next pattern')
     } catch {

+ 1 - 0
frontend/vite.config.ts

@@ -43,6 +43,7 @@ export default defineConfig({
       '/run_theta_rho': 'http://localhost:8080',
       '/pause_execution': 'http://localhost:8080',
       '/resume_execution': 'http://localhost:8080',
+      '/skip_pattern': 'http://localhost:8080',
       '/serial_status': 'http://localhost:8080',
       '/list_serial_ports': 'http://localhost:8080',
       '/connect': 'http://localhost:8080',