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
"Slingshot",
350
env!("CARGO_PKG_VERSION"),
351
)
352
-
.server("http://localhost:3000")
0
0
0
0
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()