pub async fn serve_api(port: u16, _web_path: Option<String>) -> Result<()>
Serve the API on a dedicated port, separate from the web UI. Called by the supervisor when settings.api.bind_port is configured.
settings.api.bind_port