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>
|