Tail match the full path

This commit is contained in:
Valentin Brandl 2019-07-24 18:22:27 +02:00
parent 623e9c50d2
commit 97066d1e06
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

View File

@ -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::<Github>),
)
// .default_service(web::resource("").route(web::get().to_async(p404)))