Compare commits
3 Commits
aa3051a6ef
...
0f06a5e017
| Author | SHA1 | Date |
|---|---|---|
|
|
0f06a5e017 | |
|
|
5fa7119b9a | |
|
|
952e75592b |
|
|
@ -995,9 +995,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tower-http"
|
name = "tower-http"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "79dd37121c38240c4b4fe6520332406218bbf876f2f690fe9e406020189366fd"
|
checksum = "f7755f984aa46a9d50829dc84b6a674b2f3b8b4de47c0708923953b090d48acc"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64",
|
"base64",
|
||||||
"bitflags",
|
"bitflags",
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ hyper = { version = "0.14.18" }
|
||||||
tokio = { version = "1.18.0", features = ["full"] }
|
tokio = { version = "1.18.0", features = ["full"] }
|
||||||
tracing = "0.1.34"
|
tracing = "0.1.34"
|
||||||
tracing-subscriber = {version = "0.3.11", features = ["env-filter"] }
|
tracing-subscriber = {version = "0.3.11", features = ["env-filter"] }
|
||||||
tower-http = { version = "0.3.0", features = ["fs", "trace", "auth"] }
|
tower-http = { version = "0.3.1", features = ["fs", "trace", "auth"] }
|
||||||
tar = "0.4.38"
|
tar = "0.4.38"
|
||||||
flate2 = "1.0.23"
|
flate2 = "1.0.23"
|
||||||
tokio-util = { version = "0.7.1", features = ["io"] }
|
tokio-util = { version = "0.7.1", features = ["io"] }
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ async fn main() {
|
||||||
|
|
||||||
// Each static site gets mounted explicitely so that the default site can be used as fallback
|
// Each static site gets mounted explicitely so that the default site can be used as fallback
|
||||||
// Each entry is of the form (route, static dir name)
|
// Each entry is of the form (route, static dir name)
|
||||||
let sites = [("/docs", "docs")];
|
let sites = [("/docs", "docs"), ("/api-docs/vieter", "api-docs-vieter")];
|
||||||
|
|
||||||
for (path, dir) in sites {
|
for (path, dir) in sites {
|
||||||
let full_path = format!("{}/{}", static_dir, dir);
|
let full_path = format!("{}/{}", static_dir, dir);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue