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 "Slingshot", 350 env!("CARGO_PKG_VERSION"), 351 ) 352 - .server("http://localhost:3000") 353 .url_prefix("/xrpc"); 354 355 let mut app = Route::new()
··· 349 "Slingshot", 350 env!("CARGO_PKG_VERSION"), 351 ) 352 + .server(if let Some(ref h) = host { 353 + format!("https://{h}") 354 + } else { 355 + "http://localhost:3000".to_string() 356 + }) 357 .url_prefix("/xrpc"); 358 359 let mut app = Route::new()