1
0
mirror of https://github.com/actix/actix-website synced 2024-12-04 12:41:55 +01:00
actix-website/examples/url-dispatch/src/main.rs

30 lines
455 B
Rust
Raw Normal View History

2018-05-24 19:13:55 +02:00
mod cfg;
mod dhandler;
mod minfo;
mod norm;
mod norm2;
mod path;
mod path2;
mod pbuf;
mod pred;
mod pred2;
mod resource;
mod scope;
mod url_ext;
mod urls;
// <main>
2019-06-17 02:19:25 +02:00
use actix_web::{web, App, HttpRequest, HttpResponse};
2018-05-24 19:13:55 +02:00
fn index(req: HttpRequest) -> HttpResponse {
unimplemented!()
}
fn main() {
App::new()
2019-06-17 02:19:25 +02:00
.route("/user/{name}", web::get().to(index))
.route("/user/{name}", web::get().to(index))
2018-05-24 19:13:55 +02:00
.finish();
}
// </main>