fix(voice): correct Express route for voice command

Route was POST /api/command (mounted at /api + /command)
Fixed to POST /api/voice/command (mounted at /api + /voice/command)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
MythEclipse
2026-06-09 00:13:00 +07:00
co-authored by Claude Opus 4.8
parent 3252b323d3
commit a4c2b93314
@@ -23,8 +23,8 @@ export function createVoiceRouter(): Router {
// GET /api/guilds/:guildId/voice-channels // GET /api/guilds/:guildId/voice-channels
router.get("/guilds/:guildId/voice-channels", handleGetVoiceChannels); router.get("/guilds/:guildId/voice-channels", handleGetVoiceChannels);
// POST /api/command — send arbitrary voice command (transmit start/stop) // POST /api/voice/command — send arbitrary voice command (transmit start/stop)
router.post("/command", handleVoiceCommand); router.post("/voice/command", handleVoiceCommand);
return router; return router;
} }