tangled
alpha
login
or
join now
bad-example.com
/
microcosm-links
7
fork
atom
APIs for links and references in the ATmosphere
7
fork
atom
overview
issues
pulls
pipelines
use the host val if set for docs server
bad-example.com
7 months ago
5bc7fd28
6aa09d15
+5
-1
1 changed file
expand all
collapse all
unified
split
slingshot
src
server.rs
+5
-1
slingshot/src/server.rs
···
349
349
"Slingshot",
350
350
env!("CARGO_PKG_VERSION"),
351
351
)
352
352
-
.server("http://localhost:3000")
352
352
+
.server(if let Some(ref h) = host {
353
353
+
format!("https://{h}")
354
354
+
} else {
355
355
+
"http://localhost:3000".to_string()
356
356
+
})
353
357
.url_prefix("/xrpc");
354
358
355
359
let mut app = Route::new()