APIs for links and references in the ATmosphere

use the host val if set for docs server

Changed files
+5 -1
slingshot
src
+5 -1
slingshot/src/server.rs
··· 349 349 "Slingshot", 350 350 env!("CARGO_PKG_VERSION"), 351 351 ) 352 - .server("http://localhost:3000") 352 + .server(if let Some(ref h) = host { 353 + format!("https://{h}") 354 + } else { 355 + "http://localhost:3000".to_string() 356 + }) 353 357 .url_prefix("/xrpc"); 354 358 355 359 let mut app = Route::new()