import { musicRouter } from '@@/api/music/router'; // /api/music/* — auth, then forward to officer-music. // // ── Why this re-exports the platform's proxy instead of creating its own ── // // `src/servers/api/music/router.ts` has to stay behind: `api/cliamp/relay.ts` imports // `getMusicServerWsUrl` from it to pipe the cliamp player socket to this sidecar, and cliamp is // deliberately out of scope — it is a second playback path that the platform still owns. // // So the proxy already exists, and building a SECOND `createSidecarProxy({ name: 'music' })` here would // mean two subscribers to the one-shot `music:server` port announcement. Both would work today, and the // first reconnect where only one of them was listening would produce a 503 nobody could explain. One // proxy, one subscription, mounted by whoever needs it. // // The seam is one file, and it is inert when this plugin is not installed: the router is only reachable // once `mountPrefix()` puts it under `/api/music`, which only happens for an installed, enabled plugin. export const router = musicRouter;