mirror of
https://github.com/actix/actix-website
synced 2025-02-13 08:32:20 +01:00
16 lines
323 B
Rust
16 lines
323 B
Rust
|
// <norm>
|
||
|
use actix_web::{http::NormalizePath, App};
|
||
|
|
||
|
fn main() {
|
||
|
let app = App::new()
|
||
|
.resource("/resource/", |r| r.f(index))
|
||
|
.default_resource(|r| r.h(NormalizePath::default()))
|
||
|
.finish();
|
||
|
}
|
||
|
// </norm>
|
||
|
|
||
|
use actix_web::HttpRequest;
|
||
|
fn index(req: HttpRequest) -> String {
|
||
|
unimplemented!()
|
||
|
}
|