mirror of
https://github.com/actix/actix-website
synced 2025-02-23 20:53:01 +01:00
15 lines
296 B
Rust
15 lines
296 B
Rust
// <norm>
|
|
use actix_web::{middleware, web, App, HttpResponse};
|
|
|
|
fn main() {
|
|
App::new()
|
|
.wrap(middleware::NormalizePath)
|
|
.route("/", web::get().to(|| HttpResponse::Ok()));
|
|
}
|
|
// </norm>
|
|
|
|
use actix_web::HttpRequest;
|
|
fn index(_req: HttpRequest) -> String {
|
|
unimplemented!()
|
|
}
|