From 97066d1e063559dba582168dfee8133f783ea975 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Wed, 24 Jul 2019 18:22:27 +0200 Subject: [PATCH] Tail match the full path --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f246f46..7876245 100644 --- a/src/main.rs +++ b/src/main.rs @@ -106,7 +106,7 @@ fn main() -> Result<()> { .data(Client::new()) .wrap(middleware::Logger::default()) .route( - "/github/{user}/{repo}/{commit}/{file}", + "/github/{user}/{repo}/{commit}/{file:.*}", web::get().to_async(handle_request::), ) // .default_service(web::resource("").route(web::get().to_async(p404)))