mirror of
https://github.com/actix/actix-website
synced 2025-01-23 00:25:55 +01:00
17 lines
359 B
Rust
17 lines
359 B
Rust
// <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;
|
|
|
|
fn index(req: &HttpRequest) -> String {
|
|
unimplemented!()
|
|
}
|