mirror of
https://github.com/actix/actix-website
synced 2025-02-02 12:19:04 +01:00
17 lines
349 B
Rust
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!()
|
|
}
|