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
|
|
|
|
2019-06-17 08:08:42 +02:00
|
|
|
fn index(_req: HttpRequest) -> HttpResponse {
|
2018-05-24 19:13:55 +02:00
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
App::new()
|
2019-06-17 02:19:25 +02:00
|
|
|
.route("/user/{name}", web::get().to(index))
|
2019-06-17 10:12:11 +02:00
|
|
|
.route("/user/{name}", web::post().to(index));
|
2018-05-24 19:13:55 +02:00
|
|
|
}
|
|
|
|
// </main>
|