1
0
mirror of https://github.com/actix/actix-website synced 2025-02-24 04:53:20 +01:00

29 lines
439 B
Rust
Raw Normal View History

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