import { createSidecarProxy } from '../../sidecar/create-proxy'; // /api/transmission/* — auth, then forward to officer-transmission. No routes of its own and no transmission knowledge: // this file must never grow app logic. // // The sidecar owns the Transmission RPC contract, including its session-id handshake, and holds the // credentials. The platform knows none of it. const proxy = createSidecarProxy({ name: 'transmission', prefix: '/api/transmission', }); export const transmissionRouter = proxy.router; /** Base URL of the sidecar's HTTP server, or null if it hasn't reported in yet. */ export const getTransmissionServerUrl = proxy.getHttpUrl;