Compare commits
No commits in common. "95961f141dd9ee7d73b19dbe852539aa21b5aa61" and "0f06a5e0175686a9774101eb06b84fffe09f8e0e" have entirely different histories.
95961f141d
...
0f06a5e017
|
|
@ -787,9 +787,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "serde_json"
|
name = "serde_json"
|
||||||
version = "1.0.80"
|
version = "1.0.79"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f972498cf015f7c0746cac89ebe1d6ef10c293b94175a243a2d9442c163d9944"
|
checksum = "8e8d9fa5c3b304765ce1fd9c4c8a3de2c8db365a5b91be52f186efc675681d95"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"itoa",
|
"itoa",
|
||||||
"ryu",
|
"ryu",
|
||||||
|
|
@ -995,9 +995,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tower-http"
|
name = "tower-http"
|
||||||
version = "0.3.2"
|
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 = "e980386f06883cf4d0578d6c9178c81f68b45d77d00f2c2c1bc034b3439c2c56"
|
checksum = "f7755f984aa46a9d50829dc84b6a674b2f3b8b4de47c0708923953b090d48acc"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64",
|
"base64",
|
||||||
"bitflags",
|
"bitflags",
|
||||||
|
|
|
||||||
|
|
@ -16,13 +16,13 @@ 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.2", 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"] }
|
||||||
futures-util = "0.3.21"
|
futures-util = "0.3.21"
|
||||||
uuid = { version = "1.0.0", features = ["v4"] }
|
uuid = { version = "1.0.0", features = ["v4"] }
|
||||||
serde_json = "1.0.80"
|
serde_json = "1.0.79"
|
||||||
metrics = "0.18.1"
|
metrics = "0.18.1"
|
||||||
metrics-exporter-prometheus = "0.9.0"
|
metrics-exporter-prometheus = "0.9.0"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
|
|
|
||||||
|
|
@ -51,10 +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 = [
|
let sites = [("/docs", "docs"), ("/api-docs/vieter", "api-docs-vieter")];
|
||||||
("/docs/vieter", "docs-vieter"),
|
|
||||||
("/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