From c546432de4daa23bc068989b8a3fbf32dc4f2ccd Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Fri, 6 Oct 2023 20:58:08 -0400 Subject: [PATCH] Add local-latest endpoint --- Cargo.toml | 2 +- index.html | 4 ++-- src/main.rs | 59 +++++++++++++++++++++++++++++++++++++++++++---------- 3 files changed, 51 insertions(+), 14 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ec552ff..f8f7d2d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,6 @@ serde_json = "1.0.107" tokio = { version = "1.32.0", features = ["net", "rt", "macros", "rt-multi-thread", "process", "io-util"] } tower = "0.4.13" # Use this until https://github.com/tokio-rs/axum/issues/1731 works -tower-http = { git = "https://github.com/austenadler/tower-http", branch = "serve-dir-mount-point", features = ["fs", "tracing", "trace"] } +tower-http = { git = "https://github.com/austenadler/tower-http", branch = "serve-dir-mount-point", features = ["fs", "tracing", "trace", "normalize-path"] } tracing = "0.1.37" tracing-subscriber = "0.3.17" diff --git a/index.html b/index.html index 608dca1..5f89aba 100644 --- a/index.html +++ b/index.html @@ -37,10 +37,10 @@ - +