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

15 lines
296 B
Rust
Raw Normal View History

2018-05-24 10:13:55 -07:00
// <norm>
2019-06-17 02:08:42 -04:00
use actix_web::{middleware, web, App, HttpResponse};
2018-05-24 10:13:55 -07:00
fn main() {
2019-06-17 02:08:42 -04:00
App::new()
.wrap(middleware::NormalizePath)
.route("/", web::get().to(|| HttpResponse::Ok()));
2018-05-24 10:13:55 -07:00
}
// </norm>
use actix_web::HttpRequest;
2019-06-17 02:08:42 -04:00
fn index(_req: HttpRequest) -> String {
2018-05-24 10:13:55 -07:00
unimplemented!()
}