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

17 lines
349 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::{http::Method, middleware, web, App};
2018-05-24 10:13:55 -07:00
fn main() {
2019-06-17 02:08:42 -04:00
App::new()
.wrap(middleware::NormalizePath)
.route("/resource/", web::get().to(index))
.default_service(web::route().method(Method::GET));
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!()
}