// use actix_web::{http::Method, http::NormalizePath, App}; fn main() { let app = App::new() .resource("/resource/", |r| r.f(index)) .default_resource(|r| r.method(Method::GET).h(NormalizePath::default())) .finish(); } // use actix_web::HttpRequest; fn index(req: HttpRequest) -> String { unimplemented!() }