#[get("/resource1/{name}/index.html")] fn index(req: HttpRequest, name: web::Path<String>) -> String { println!("REQ: {:?}", req); format!("Hello: {}!\r\n", name) }
I also had no idea about this macro until I was digging through documentation for something else.