pub fn start_api_background(
state: Arc<SharedPlayerState>,
cmd_tx: Sender<PlayerCommand>,
db_path: PathBuf,
port: Option<u16>,
bind: Option<IpAddr>,
subsonic_port: Option<u16>,
playground: bool,
)Expand description
Start the API server on the current thread (blocks forever). Called from a background thread when TUI mode has API enabled.
Accepts positional args for backward compatibility with koan-cli.
Prefer ApiServerOpts for new call sites.