1
0
mirror of https://github.com/actix/actix-website synced 2025-02-02 20:29:03 +01:00

17 lines
359 B
Rust
Raw Normal View History

2018-05-24 10:13:55 -07:00
// <norm>
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();
}
// </norm>
use actix_web::HttpRequest;
2018-07-21 05:21:41 -07:00
fn index(req: &HttpRequest) -> String {
2018-05-24 10:13:55 -07:00
unimplemented!()
}