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

17 lines
349 B
Rust

// <norm>
use actix_web::{http::Method, middleware, web, App};
fn main() {
App::new()
.wrap(middleware::NormalizePath)
.route("/resource/", web::get().to(index))
.default_service(web::route().method(Method::GET));
}
// </norm>
use actix_web::HttpRequest;
fn index(_req: HttpRequest) -> String {
unimplemented!()
}