import { createSidecarProxy } from '../../sidecar/create-proxy'; // /api/memos/* — auth, then forward to officer-memos. No routes of its own and no Memos knowledge: // this file must never grow app logic. // // The sidecar owns the Memos contract and holds the personal access token. The platform knows neither. const proxy = createSidecarProxy({ name: 'memos', prefix: '/api/memos', }); export const memosRouter = proxy.router; /** Base URL of the sidecar's HTTP server, or null if it hasn't reported in yet. */ export const getMemosServerUrl = proxy.getHttpUrl;