diff --git a/src/rweb.rs b/src/rweb.rs index b6204c6..160af19 100644 --- a/src/rweb.rs +++ b/src/rweb.rs @@ -38,7 +38,7 @@ fn index(lib: State) -> Result>, NotFound> { file("index.html", lib) } -#[get("/")] +#[get("/", rank = 99)] fn path(path: PathBuf, lib: State) -> Result>, NotFound> { let path = path.to_str().unwrap(); let path = if path.ends_with("/") { @@ -134,6 +134,10 @@ pub fn run(addr: SocketAddr, lib: Library) -> Result<(), Box> { error!(" R1 {}", r1); error!(" R2 {}", r2); } + for (r1, r2) in v { + error!(" R1 {:#?}", r1); + error!(" R2 {:#?}", r2); + } } _ => (), };