1
0
mirror of https://github.com/actix/actix-website synced 2025-02-23 20:53:01 +01:00
2019-06-17 02:08:42 -04:00

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!()
}