Tail match the full path
This commit is contained in:
parent
623e9c50d2
commit
97066d1e06
@ -106,7 +106,7 @@ fn main() -> Result<()> {
|
|||||||
.data(Client::new())
|
.data(Client::new())
|
||||||
.wrap(middleware::Logger::default())
|
.wrap(middleware::Logger::default())
|
||||||
.route(
|
.route(
|
||||||
"/github/{user}/{repo}/{commit}/{file}",
|
"/github/{user}/{repo}/{commit}/{file:.*}",
|
||||||
web::get().to_async(handle_request::<Github>),
|
web::get().to_async(handle_request::<Github>),
|
||||||
)
|
)
|
||||||
// .default_service(web::resource("").route(web::get().to_async(p404)))
|
// .default_service(web::resource("").route(web::get().to_async(p404)))
|
||||||
|
Loading…
Reference in New Issue
Block a user